void-packages/srcpkgs/xbps/template

80 lines
1.7 KiB
Text
Raw Normal View History

# Template file for 'xbps'
pkgname=xbps
2014-02-01 09:46:50 +00:00
version=0.31
revision=4
patch_args="-Np1"
2013-11-29 09:29:44 +00:00
bootstrap=yes
conf_files="/etc/xbps/xbps.conf"
replaces="xbps>=0"
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 confuse-devel"
2014-01-08 13:24:02 +00:00
depends="xbps-triggers"
short_desc="The XBPS package system utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2013-11-29 09:29:44 +00:00
homepage="http://www.voidlinux.eu/xbps"
2011-07-15 13:57:36 +00:00
license="Simplified BSD"
2013-09-25 09:30:51 +00:00
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"
xbps-tests_package() {
short_desc+=" - Kyua testsuite"
replaces="xbps<0.16.3_2 xbps-tests>=0"
pkg_install() {
vmove usr/tests
}
}
fi
2013-09-25 09:30:51 +00:00
do_fetch() {
2014-01-09 13:32:34 +00:00
git clone -b${version} git://github.com/voidlinux/xbps.git xbps-${version}
2013-09-25 09:30:51 +00:00
}
2014-02-10 16:36:13 +00:00
do_configure() {
if [ "$CHROOT_READY" ]; then
_args="--enable-tests"
fi
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug ${_args}
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
}
libxbps_package() {
short_desc+=" - runtime library"
replaces="xbps<0.16.3_2 libxbps>=0"
pkg_install() {
2013-07-05 06:14:30 +00:00
vmove "usr/lib/*.so.*"
}
}
libxbps-devel_package() {
short_desc+=" - runtime library (development files)"
2013-07-05 06:14:30 +00:00
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"
2013-07-05 06:14:30 +00:00
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"
}
}