54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
# Template file for 'xbps'
|
|
pkgname=xbps
|
|
version=0.44.1
|
|
revision=2
|
|
bootstrap=yes
|
|
build_style=configure
|
|
short_desc="The XBPS package system utilities"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/voidlinux/xbps"
|
|
license="2-clause-BSD"
|
|
|
|
makedepends="zlib-devel libressl-devel libarchive-devel"
|
|
depends="xbps-triggers"
|
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
else
|
|
hostmakedepends="git pkg-config"
|
|
makedepends+=" atf-devel"
|
|
|
|
xbps-tests_package() {
|
|
short_desc+=" - Kyua testsuite"
|
|
pkg_install() {
|
|
vmove usr/tests
|
|
}
|
|
}
|
|
|
|
fi
|
|
|
|
do_fetch() {
|
|
git clone -b${version} git://github.com/voidlinux/xbps ${wrksrc}
|
|
}
|
|
do_configure() {
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \
|
|
${CHROOT_READY:+--enable-tests}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|