From 8cc225713343f24a07de7c2d0cc277c37dd9d3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 31 Dec 2020 15:33:52 -0300 Subject: [PATCH] xbps: add architecture file for all archs. This adds an equivalent for the musl-arch.conf file that was previously contained in the musl package. No need to special case musl, so add it for all archs. --- srcpkgs/xbps/template | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 66deab88d1b..e43050da90e 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.59.1 -revision=2 +revision=3 bootstrap=yes build_style=configure short_desc="XBPS package system utilities" @@ -33,21 +33,23 @@ fi do_configure() { ./configure --prefix=/usr --sysconfdir=/etc ${CHROOT_READY:+--enable-tests} } + post_install() { + local _repo="repository=https://alpha.de.repo.voidlinux.org" _suffix= case "$XBPS_TARGET_MACHINE" in aarch64*) # XXX different repo location - echo "repository=https://alpha.de.repo.voidlinux.org/current/aarch64" > \ - ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + _suffix="/aarch64" ;; *-musl) # XXX different repo location - echo "repository=https://alpha.de.repo.voidlinux.org/current/musl" > \ - ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf - ;; - *) - echo "repository=https://alpha.de.repo.voidlinux.org/current" > \ - ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + _suffix="/musl" ;; esac + + echo "${_repo}/current${_suffix}" > \ + ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + echo "architecture=${XBPS_TARGET_MACHINE}" > \ + ${DESTDIR}/usr/share/xbps.d/xbps-arch.conf + vlicense LICENSE vlicense LICENSE.3RDPARTY } @@ -58,6 +60,7 @@ libxbps_package() { vmove "usr/lib/*.so.*" } } + libxbps-devel_package() { short_desc+=" - runtime library (development files)" depends="${makedepends} libxbps>=${version}_${revision}"