xbps: clean up the repo/suffix stuff
This commit is contained in:
parent
b7b7ab7d79
commit
3339d98b60
1 changed files with 4 additions and 8 deletions
|
@ -35,17 +35,13 @@ do_configure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
local _repo="repository=https://alpha.de.repo.voidlinux.org" _suffix=
|
local repo="repository=https://alpha.de.repo.voidlinux.org/current" suffix=
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
aarch64*) # XXX different repo location
|
aarch64*) suffix="/aarch64";;
|
||||||
_suffix="/aarch64"
|
*-musl) suffix="/musl";;
|
||||||
;;
|
|
||||||
*-musl) # XXX different repo location
|
|
||||||
_suffix="/musl"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "${_repo}/current${_suffix}" > \
|
echo "${repo}${suffix}" > \
|
||||||
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
||||||
echo "architecture=${XBPS_TARGET_MACHINE}" > \
|
echo "architecture=${XBPS_TARGET_MACHINE}" > \
|
||||||
${DESTDIR}/usr/share/xbps.d/xbps-arch.conf
|
${DESTDIR}/usr/share/xbps.d/xbps-arch.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue