xbps: clean up the repo/suffix stuff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user