70 lines
1.8 KiB
Bash
70 lines
1.8 KiB
Bash
# Template file for 'xbps'
|
|
pkgname=xbps
|
|
version=0.53
|
|
revision=4
|
|
bootstrap=yes
|
|
build_style=configure
|
|
short_desc="The XBPS package system utilities"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/void-linux/xbps"
|
|
license="BSD-2-Clause"
|
|
distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
|
|
checksum=360b3149141fec46dd6da9019605bcee48ee4d29bffe5aa47a9fd5fa68ccd5f4
|
|
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel libressl-devel libarchive-devel"
|
|
depends="ca-certificates xbps-triggers"
|
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
makedepends+=" atf-devel"
|
|
xbps-tests_package() {
|
|
short_desc+=" - Kyua testsuite"
|
|
pkg_install() {
|
|
vmove usr/tests
|
|
}
|
|
}
|
|
|
|
fi
|
|
|
|
do_configure() {
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \
|
|
--bindir=/usr/bin ${CHROOT_READY:+--enable-tests}
|
|
}
|
|
post_install() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) # XXX different repo location
|
|
echo "repository=https://repo.voidlinux.eu/current/aarch64" > \
|
|
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
|
;;
|
|
*-musl) # XXX different repo location
|
|
echo "repository=https://repo.voidlinux.eu/current/musl" > \
|
|
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
|
;;
|
|
*)
|
|
echo "repository=https://repo.voidlinux.eu/current" > \
|
|
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
|
|
;;
|
|
esac
|
|
vmkdir etc/xbps.d
|
|
touch ${DESTDIR}/etc/xbps.d/.empty
|
|
vlicense COPYING
|
|
vlicense COPYING.3RDPARTY
|
|
}
|
|
|
|
libxbps_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
libxbps-devel_package() {
|
|
short_desc+=" - runtime library (development files)"
|
|
depends="zlib-devel libarchive-devel libxbps>=${version}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|