2009-08-18 16:30:52 +02:00
|
|
|
# Template file for 'xbps'
|
|
|
|
pkgname=xbps
|
2014-02-01 10:46:50 +01:00
|
|
|
version=0.31
|
2014-02-06 12:30:36 +01:00
|
|
|
revision=4
|
2014-02-05 16:23:57 +01:00
|
|
|
patch_args="-Np1"
|
2013-11-29 10:29:44 +01:00
|
|
|
bootstrap=yes
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/xbps/xbps.conf"
|
|
|
|
replaces="xbps>=0"
|
2010-06-03 10:09:37 +02:00
|
|
|
build_style=configure
|
2014-01-20 18:55:49 +01:00
|
|
|
configure_script="env HAVE_VASPRINTF=1 ./configure"
|
2013-10-19 12:30:35 +02:00
|
|
|
configure_args="--prefix=/usr --sysconfdir=/etc --enable-static --enable-debug"
|
|
|
|
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 confuse-devel"
|
2014-01-08 14:24:02 +01:00
|
|
|
depends="xbps-triggers"
|
2009-12-12 11:58:50 +01:00
|
|
|
short_desc="The XBPS package system utilities"
|
2009-08-18 16:30:52 +02:00
|
|
|
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
|
|
|
|
2013-10-24 10:07:33 +02:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
|
|
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
else
|
2013-10-19 12:30:35 +02:00
|
|
|
hostmakedepends="which pkg-config"
|
|
|
|
makedepends+=" atf-devel"
|
|
|
|
configure_args+=" --enable-tests"
|
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
xbps-tests_package() {
|
|
|
|
short_desc+=" - Kyua testsuite"
|
|
|
|
replaces="xbps<0.16.3_2 xbps-tests>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/tests
|
|
|
|
}
|
2013-10-19 12:30:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2013-09-25 11:30:51 +02:00
|
|
|
do_fetch() {
|
2014-01-09 14:32:34 +01:00
|
|
|
git clone -b${version} git://github.com/voidlinux/xbps.git xbps-${version}
|
2013-09-25 11:30:51 +02:00
|
|
|
}
|
2013-04-14 18:42:25 +02:00
|
|
|
|
|
|
|
libxbps_package() {
|
2013-05-15 15:53:54 +02:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-14 18:42:25 +02:00
|
|
|
replaces="xbps<0.16.3_2 libxbps>=0"
|
|
|
|
pkg_install() {
|
2013-07-05 08:14:30 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 18:42:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libxbps-devel_package() {
|
2013-05-15 15:53:54 +02:00
|
|
|
short_desc+=" - runtime library (development files)"
|
2013-07-05 08:14:30 +02:00
|
|
|
depends="zlib-devel libarchive-devel libxbps>=${version}"
|
2013-04-14 18:42:25 +02:00
|
|
|
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"
|
2013-04-14 18:42:25 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xbps-static_package() {
|
|
|
|
depends="xbps-triggers"
|
2013-05-15 15:53:54 +02:00
|
|
|
short_desc+=" - static binaries"
|
2013-04-14 18:42:25 +02:00
|
|
|
replaces="xbps-static>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/sbin/*.static"
|
|
|
|
}
|
|
|
|
}
|