xbps: make repo generation less error-prone

This commit is contained in:
q66 2021-01-29 14:20:39 +01:00
parent a4566c40ba
commit 7bb37dacac

View file

@ -35,13 +35,13 @@ do_configure() {
} }
post_install() { post_install() {
local repo="repository=https://alpha.de.repo.voidlinux.org/current" suffix= local repo="https://alpha.de.repo.voidlinux.org/current" suffix=
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
aarch64*) suffix="/aarch64";; aarch64*) suffix="/aarch64";;
*-musl) suffix="/musl";; *-musl) suffix="/musl";;
esac esac
echo "${repo}${suffix}" > \ echo "repository=${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