74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
# Template file for 'xbps'
|
|
pkgname=xbps
|
|
version=0.59.2
|
|
revision=1
|
|
bootstrap=yes
|
|
build_style=configure
|
|
short_desc="XBPS package system utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="BSD-2-Clause, BSD-3-Clause, ISC"
|
|
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=a6607e83fcd654a0ae846d729e43fefd8da9a61323e91430f884caf895b4f59b
|
|
|
|
hostmakedepends="pkgconf"
|
|
checkdepends="kyua"
|
|
makedepends="zlib-devel openssl-devel libarchive-devel"
|
|
depends="ca-certificates xbps-triggers"
|
|
|
|
make_dirs="/etc/xbps.d 0755 root root"
|
|
|
|
LDFLAGS="-ldl -pthread"
|
|
|
|
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() {
|
|
local repo="https://repo-default.voidlinux.org/current" suffix=
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) suffix="/aarch64";;
|
|
*-musl) suffix="/musl";;
|
|
esac
|
|
|
|
echo "repository=${repo}${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
|
|
|
|
echo "" > ${DESTDIR}/usr/share/xbps.d/void-virtualpkgs.conf
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|