void-packages/srcpkgs/xbps/template

67 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template file for 'xbps'
pkgname=xbps
version=0.28.1
2014-01-03 11:11:15 +01:00
revision=1
2013-11-29 10:29:44 +01:00
bootstrap=yes
depends="xbps-triggers"
conf_files="/etc/xbps/xbps.conf"
replaces="xbps>=0"
2010-06-03 10:09:37 +02:00
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"
short_desc="The XBPS package system utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2013-11-29 10:29:44 +01:00
homepage="http://www.voidlinux.eu/xbps"
2011-07-15 15:57:36 +02:00
license="Simplified BSD"
2013-09-25 11:30:51 +02: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"
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
2013-09-25 11:30:51 +02:00
do_fetch() {
git clone -b 0.28 git://github.com/voidlinux/xbps.git xbps-${version}
2013-09-25 11:30:51 +02:00
}
libxbps_package() {
short_desc+=" - runtime library"
replaces="xbps<0.16.3_2 libxbps>=0"
pkg_install() {
2013-07-05 08:14:30 +02:00
vmove "usr/lib/*.so.*"
}
}
libxbps-devel_package() {
short_desc+=" - runtime library (development files)"
2013-07-05 08:14:30 +02: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 08:14:30 +02: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"
}
}