2012-07-06 16:59:20 +02:00
|
|
|
# Template file for 'xbps-git'
|
|
|
|
pkgname=xbps-git
|
2014-04-06 12:24:58 +02:00
|
|
|
version=20140406
|
2014-04-06 12:33:20 +02:00
|
|
|
revision=2
|
2014-01-28 17:36:35 +01:00
|
|
|
short_desc="The XBPS package system (development branch)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.voidlinux.eu/xbps"
|
|
|
|
license="Simplified BSD"
|
|
|
|
|
2013-10-07 10:32:23 +02:00
|
|
|
hostmakedepends="which pkg-config"
|
2014-02-25 17:02:30 +01:00
|
|
|
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 atf-devel"
|
2014-01-28 17:36:35 +01:00
|
|
|
|
2014-02-25 21:56:54 +01:00
|
|
|
triggers="virtualpkg"
|
|
|
|
depends="xbps-triggers>=0.75 libxbps-git-${version}_${revision}"
|
2014-01-09 11:50:01 +01:00
|
|
|
provides="xbps-${version}_${revision}"
|
2014-04-06 12:33:20 +02:00
|
|
|
replaces="xbps>=0 xbps-devel>=0 xbps-src-utils>=0"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/xbps/xbps.conf"
|
2009-11-07 12:13:39 +01:00
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_fetch() {
|
2014-02-05 16:27:24 +01:00
|
|
|
local url="git://github.com/voidlinux/xbps"
|
2012-07-31 17:56:32 +02:00
|
|
|
msg_normal "Fetching source from $url ...\n"
|
2011-10-14 19:24:20 +02:00
|
|
|
git clone ${url} ${pkgname}-${version}
|
2009-11-07 12:13:39 +01:00
|
|
|
}
|
2013-02-06 18:55:36 +01:00
|
|
|
|
2014-02-09 12:16:35 +01:00
|
|
|
do_configure() {
|
2014-03-20 16:42:28 +01:00
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug --enable-tests
|
2014-02-09 12:16:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=$DESTDIR install
|
|
|
|
}
|
|
|
|
|
2013-04-14 18:42:25 +02:00
|
|
|
libxbps-git_package() {
|
2013-05-17 08:28:07 +02:00
|
|
|
short_desc+=" - runtime library"
|
2014-01-09 11:50:01 +01:00
|
|
|
provides="libxbps-${version}_${revision}"
|
2013-04-14 18:42:25 +02:00
|
|
|
replaces="libxbps>=0 xbps-devel>=0"
|
|
|
|
pkg_install() {
|
2013-07-04 03:07:25 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 18:42:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libxbps-devel-git_package() {
|
2013-05-17 08:28:07 +02:00
|
|
|
short_desc+=" - runtime library (development files)"
|
2013-07-04 03:07:25 +02:00
|
|
|
depends="zlib-devel libarchive-devel libxbps>=${version}"
|
2014-01-09 11:50:01 +01:00
|
|
|
provides="libxbps-devel-${version}_${revision}"
|
2013-04-14 18:42:25 +02:00
|
|
|
replaces="libxbps-devel>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-04 03:07:25 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 18:42:25 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xbps-tests-git_package() {
|
2013-05-17 08:28:07 +02:00
|
|
|
short_desc+=" - Kyua testsuite"
|
2013-04-14 18:42:25 +02:00
|
|
|
depends="libxbps>=${version}"
|
2014-01-09 11:50:01 +01:00
|
|
|
provides="xbps-tests-${version}_${revision}"
|
2013-04-14 18:42:25 +02:00
|
|
|
replaces="xbps-tests>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/tests
|
|
|
|
}
|
|
|
|
}
|