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.
This commit is contained in:
parent
d2cec3d58d
commit
8cc2257133
1 changed files with 12 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'xbps'
|
# Template file for 'xbps'
|
||||||
pkgname=xbps
|
pkgname=xbps
|
||||||
version=0.59.1
|
version=0.59.1
|
||||||
revision=2
|
revision=3
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
build_style=configure
|
build_style=configure
|
||||||
short_desc="XBPS package system utilities"
|
short_desc="XBPS package system utilities"
|
||||||
|
@ -33,21 +33,23 @@ fi
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure --prefix=/usr --sysconfdir=/etc ${CHROOT_READY:+--enable-tests}
|
./configure --prefix=/usr --sysconfdir=/etc ${CHROOT_READY:+--enable-tests}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
local _repo="repository=https://alpha.de.repo.voidlinux.org" _suffix=
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
aarch64*) # XXX different repo location
|
aarch64*) # XXX different repo location
|
||||||
echo "repository=https://alpha.de.repo.voidlinux.org/current/aarch64" > \
|
_suffix="/aarch64"
|
||||||
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
|
||||||
;;
|
;;
|
||||||
*-musl) # XXX different repo location
|
*-musl) # XXX different repo location
|
||||||
echo "repository=https://alpha.de.repo.voidlinux.org/current/musl" > \
|
_suffix="/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
|
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
||||||
vlicense LICENSE.3RDPARTY
|
vlicense LICENSE.3RDPARTY
|
||||||
}
|
}
|
||||||
|
@ -58,6 +60,7 @@ libxbps_package() {
|
||||||
vmove "usr/lib/*.so.*"
|
vmove "usr/lib/*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libxbps-devel_package() {
|
libxbps-devel_package() {
|
||||||
short_desc+=" - runtime library (development files)"
|
short_desc+=" - runtime library (development files)"
|
||||||
depends="${makedepends} libxbps>=${version}_${revision}"
|
depends="${makedepends} libxbps>=${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue