xbps: make repo generation less error-prone
This commit is contained in:
@@ -35,13 +35,13 @@ do_configure() {
|
||||
}
|
||||
|
||||
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
|
||||
aarch64*) suffix="/aarch64";;
|
||||
*-musl) suffix="/musl";;
|
||||
esac
|
||||
|
||||
echo "${repo}${suffix}" > \
|
||||
echo "repository=${repo}${suffix}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
||||
echo "architecture=${XBPS_TARGET_MACHINE}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps-arch.conf
|
||||
|
||||
Reference in New Issue
Block a user