xbps: make repo generation less error-prone
This commit is contained in:
parent
a4566c40ba
commit
7bb37dacac
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue