xbps: clean up the repo/suffix stuff

This commit is contained in:
q66 2021-01-28 13:31:13 +01:00
parent b7b7ab7d79
commit 3339d98b60

View file

@ -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