61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
# Template file for 'xbps'
|
|
pkgname=xbps
|
|
version=0.43
|
|
revision=2
|
|
bootstrap=yes
|
|
build_style=configure
|
|
short_desc="The XBPS package system utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="https://github.com/voidlinux/xbps"
|
|
license="2-clause-BSD"
|
|
distfiles="https://github.com/voidlinux/xbps/archive/${version}.tar.gz"
|
|
checksum=53f0e52eed657ae3ef8140a4ac18d151711e2dcbc6121619a0f68db17c7e40d2
|
|
|
|
makedepends="zlib-devel libressl-devel>=2.1.2 libarchive-devel>=3.1.2"
|
|
depends="xbps-triggers>=0.75"
|
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
else
|
|
hostmakedepends="pkg-config"
|
|
makedepends+=" atf-devel>=0.21"
|
|
|
|
xbps-tests_package() {
|
|
short_desc+=" - Kyua testsuite"
|
|
pkg_install() {
|
|
vmove usr/tests
|
|
}
|
|
}
|
|
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
|
|
# XXX disable SSP until the issue is found.
|
|
CFLAGS+=" -fno-stack-protector"
|
|
fi
|
|
|
|
do_configure() {
|
|
if [ "$CHROOT_READY" ]; then
|
|
_args="--enable-tests"
|
|
fi
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug ${_args}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|