2009-08-18 14:30:52 +00:00
|
|
|
# Template file for 'xbps'
|
|
|
|
pkgname=xbps
|
2015-01-05 15:11:45 +00:00
|
|
|
version=0.43.1
|
2015-01-22 10:30:40 +00:00
|
|
|
revision=5
|
2013-11-29 09:29:44 +00:00
|
|
|
bootstrap=yes
|
2014-10-29 08:59:57 +00:00
|
|
|
build_style=configure
|
2009-12-12 10:58:50 +00:00
|
|
|
short_desc="The XBPS package system utilities"
|
2009-08-18 14:30:52 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-12-22 10:04:27 +00:00
|
|
|
homepage="https://github.com/voidlinux/xbps"
|
|
|
|
license="2-clause-BSD"
|
|
|
|
distfiles="https://github.com/voidlinux/xbps/archive/${version}.tar.gz"
|
2015-01-05 15:11:45 +00:00
|
|
|
checksum=d8a2511dbeb7bccad0bf0bfd4fa9e46c5483c523db1f30bdd179c24ddf244e26
|
2013-09-25 09:30:51 +00:00
|
|
|
|
2015-01-22 10:30:40 +00:00
|
|
|
makedepends="zlib-devel libressl-devel>=2.1.3 libarchive-devel>=3.1.2"
|
2014-03-11 09:33:30 +00:00
|
|
|
depends="xbps-triggers>=0.75"
|
|
|
|
|
2013-10-24 08:07:33 +00:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
|
|
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
else
|
2014-12-22 10:04:27 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-10-23 21:07:41 +00:00
|
|
|
makedepends+=" atf-devel>=0.21"
|
2013-10-19 10:30:35 +00:00
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
xbps-tests_package() {
|
|
|
|
short_desc+=" - Kyua testsuite"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/tests
|
|
|
|
}
|
2013-10-19 10:30:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2014-03-11 18:28:08 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
|
|
|
|
# XXX disable SSP until the issue is found.
|
|
|
|
CFLAGS+=" -fno-stack-protector"
|
|
|
|
fi
|
|
|
|
|
2014-02-10 16:36:13 +00:00
|
|
|
do_configure() {
|
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
|
|
_args="--enable-tests"
|
|
|
|
fi
|
2014-03-20 15:36:28 +00:00
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug ${_args}
|
2014-02-10 16:36:13 +00:00
|
|
|
}
|
|
|
|
|
2013-04-14 16:42:25 +00:00
|
|
|
libxbps_package() {
|
2013-05-15 13:53:54 +00:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-14 16:42:25 +00:00
|
|
|
pkg_install() {
|
2013-07-05 06:14:30 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 16:42:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libxbps-devel_package() {
|
2013-05-15 13:53:54 +00:00
|
|
|
short_desc+=" - runtime library (development files)"
|
2013-07-05 06:14:30 +00:00
|
|
|
depends="zlib-devel libarchive-devel libxbps>=${version}"
|
2013-04-14 16:42:25 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-05 06:14:30 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 16:42:25 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|