From 3339d98b60453b885b35585c600607a11dd32c46 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 28 Jan 2021 13:31:13 +0100 Subject: [PATCH] xbps: clean up the repo/suffix stuff --- srcpkgs/xbps/template | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index e43050da90e..cae1b8681e9 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -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