71 lines
1.8 KiB
Bash
71 lines
1.8 KiB
Bash
# Template file for 'xbps'
|
|
pkgname=xbps
|
|
version=0.57.1
|
|
revision=5
|
|
bootstrap=yes
|
|
build_style=configure
|
|
short_desc="XBPS package system utilities"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/void-linux/xbps"
|
|
changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
|
|
distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
|
|
checksum=bccad7c4187c467f322e6905fbe96839c00d2cbdda254c0c99b38eabeedb8678
|
|
|
|
hostmakedepends="pkg-config"
|
|
checkdepends="kyua"
|
|
makedepends="zlib-devel libressl-devel libarchive-devel"
|
|
depends="ca-certificates xbps-triggers"
|
|
|
|
make_dirs="/etc/xbps.d 0755 root root"
|
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
makedepends+=" atf-devel"
|
|
xbps-tests_package() {
|
|
short_desc+=" - Kyua testsuite"
|
|
pkg_install() {
|
|
vmove usr/tests
|
|
}
|
|
}
|
|
|
|
fi
|
|
|
|
do_configure() {
|
|
./configure --prefix=/usr --sysconfdir=/etc ${CHROOT_READY:+--enable-tests}
|
|
}
|
|
post_install() {
|
|
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
|
|
;;
|
|
*-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
|
|
;;
|
|
esac
|
|
vlicense LICENSE
|
|
vlicense LICENSE.3RDPARTY
|
|
}
|
|
|
|
libxbps_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
libxbps-devel_package() {
|
|
short_desc+=" - runtime library (development files)"
|
|
depends="${makedepends} libxbps>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|