xbps: clean up the repo/suffix stuff
This commit is contained in:
parent
b7b7ab7d79
commit
3339d98b60
1 changed files with 4 additions and 8 deletions
|
@ -35,17 +35,13 @@ do_configure() {
|
|||
}
|
||||
|
||||
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
|
||||
aarch64*) # XXX different repo location
|
||||
_suffix="/aarch64"
|
||||
;;
|
||||
*-musl) # XXX different repo location
|
||||
_suffix="/musl"
|
||||
;;
|
||||
aarch64*) suffix="/aarch64";;
|
||||
*-musl) suffix="/musl";;
|
||||
esac
|
||||
|
||||
echo "${_repo}/current${_suffix}" > \
|
||||
echo "${repo}${suffix}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
||||
echo "architecture=${XBPS_TARGET_MACHINE}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps-arch.conf
|
||||
|
|
Loading…
Reference in a new issue