void-packages/srcpkgs/xbps/template
2014-01-09 14:32:34 +01:00

74 lines
1.7 KiB
Plaintext

# Template file for 'xbps'
pkgname=xbps
version=0.29
revision=2
bootstrap=yes
conf_files="/etc/xbps/xbps.conf"
replaces="xbps>=0"
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --enable-static --enable-debug"
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 confuse-devel"
depends="xbps-triggers"
short_desc="The XBPS package system utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu/xbps"
license="Simplified BSD"
if [ -z "$CHROOT_READY" ]; then
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
else
hostmakedepends="which pkg-config"
makedepends+=" atf-devel"
configure_args+=" --enable-tests"
xbps-tests_package() {
short_desc+=" - Kyua testsuite"
replaces="xbps<0.16.3_2 xbps-tests>=0"
pkg_install() {
vmove usr/tests
}
}
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
# XXX disable SSP for cross musl builds for now.
CFLAGS="-fno-stack-protector"
;;
esac
do_fetch() {
git clone -b${version} git://github.com/voidlinux/xbps.git xbps-${version}
}
libxbps_package() {
short_desc+=" - runtime library"
replaces="xbps<0.16.3_2 libxbps>=0"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libxbps-devel_package() {
short_desc+=" - runtime library (development files)"
depends="zlib-devel libarchive-devel libxbps>=${version}"
replaces="xbps-static<0.16.3_2 libxbps-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
xbps-static_package() {
depends="xbps-triggers"
short_desc+=" - static binaries"
replaces="xbps-static>=0"
pkg_install() {
vmove "usr/sbin/*.static"
}
}