2012-07-06 14:59:20 +00:00
|
|
|
# Template file for 'xbps-git'
|
|
|
|
pkgname=xbps-git
|
2014-02-15 00:29:51 +00:00
|
|
|
version=20140215
|
|
|
|
revision=1
|
2014-01-28 16:36:35 +00: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 08:32:23 +00:00
|
|
|
hostmakedepends="which pkg-config"
|
|
|
|
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 confuse-devel atf-devel"
|
2014-01-28 16:36:35 +00:00
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="xbps-triggers libxbps-git-${version}_${revision}"
|
2014-01-09 10:50:01 +00:00
|
|
|
provides="xbps-${version}_${revision}"
|
2014-01-01 15:10:11 +00:00
|
|
|
replaces="xbps>=0 xbps-devel>=0"
|
|
|
|
conf_files="/etc/xbps/xbps.conf"
|
2009-11-07 11:13:39 +00:00
|
|
|
|
2011-10-14 17:24:20 +00:00
|
|
|
do_fetch() {
|
2014-02-05 15:27:24 +00:00
|
|
|
local url="git://github.com/voidlinux/xbps"
|
2012-07-31 15:56:32 +00:00
|
|
|
msg_normal "Fetching source from $url ...\n"
|
2011-10-14 17:24:20 +00:00
|
|
|
git clone ${url} ${pkgname}-${version}
|
2009-11-07 11:13:39 +00:00
|
|
|
}
|
2013-02-06 17:55:36 +00:00
|
|
|
|
2014-02-09 11:16:35 +00:00
|
|
|
do_configure() {
|
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug --enable-static --enable-tests
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=$DESTDIR install
|
|
|
|
}
|
|
|
|
|
2013-04-14 16:42:25 +00:00
|
|
|
libxbps-git_package() {
|
2013-05-17 06:28:07 +00:00
|
|
|
short_desc+=" - runtime library"
|
2014-01-09 10:50:01 +00:00
|
|
|
provides="libxbps-${version}_${revision}"
|
2013-04-14 16:42:25 +00:00
|
|
|
replaces="libxbps>=0 xbps-devel>=0"
|
|
|
|
pkg_install() {
|
2013-07-04 01:07:25 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 16:42:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libxbps-devel-git_package() {
|
2013-05-17 06:28:07 +00:00
|
|
|
short_desc+=" - runtime library (development files)"
|
2013-07-04 01:07:25 +00:00
|
|
|
depends="zlib-devel libarchive-devel libxbps>=${version}"
|
2014-01-09 10:50:01 +00:00
|
|
|
provides="libxbps-devel-${version}_${revision}"
|
2013-04-14 16:42:25 +00:00
|
|
|
replaces="libxbps-devel>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-04 01:07:25 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 16:42:25 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xbps-static-git_package() {
|
2014-01-09 10:50:01 +00:00
|
|
|
provides="xbps-static-${version}_${revision}"
|
2013-04-14 16:42:25 +00:00
|
|
|
replaces="xbps-static>=0 xbps-devel-static>=0"
|
|
|
|
depends="xbps-triggers"
|
2013-05-17 06:28:07 +00:00
|
|
|
short_desc+=" - static binaries"
|
2013-04-14 16:42:25 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/sbin/*.static"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xbps-tests-git_package() {
|
2013-05-17 06:28:07 +00:00
|
|
|
short_desc+=" - Kyua testsuite"
|
2013-04-14 16:42:25 +00:00
|
|
|
depends="libxbps>=${version}"
|
2014-01-09 10:50:01 +00:00
|
|
|
provides="xbps-tests-${version}_${revision}"
|
2013-04-14 16:42:25 +00:00
|
|
|
replaces="xbps-tests>=0"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/tests
|
|
|
|
}
|
|
|
|
}
|