void-packages/srcpkgs/xbps-git/template
2013-05-17 09:19:00 +02:00

76 lines
1.8 KiB
Text

# Template file for 'xbps-git'
pkgname=xbps-git
version=20130517
revision=2
build_style=configure
configure_args="--prefix=/ --exec-prefix=/usr --sbindir=/usr/sbin
--enable-static --enable-debug --enable-tests"
short_desc="The XBPS package system (development branch)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"
license="Simplified BSD"
nofetch=yes
noextract=yes
do_fetch() {
local url="git://github.com/xtraeme/xbps"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
hostmakedepends="which pkg-config"
makedepends="zlib-devel proplib-devel openssl-devel libfetch-devel
libarchive-devel>=3.1.2 confuse-devel atf-devel"
libxbps-git_package() {
short_desc+=" - runtime library"
provides="libxbps-${version}"
replaces="libxbps>=0 xbps-devel>=0"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
libxbps-devel-git_package() {
short_desc+=" - runtime library (development files)"
depends="zlib-devel proplib-devel confuse-devel libfetch-devel
libarchive-devel libxbps>=${version}"
provides="libxbps-devel-${version}"
replaces="libxbps-devel>=0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}
xbps-static-git_package() {
provides="xbps-static-${version}"
replaces="xbps-static>=0 xbps-devel-static>=0"
depends="xbps-triggers"
short_desc+=" - static binaries"
pkg_install() {
vmove "usr/sbin/*.static"
}
}
xbps-tests-git_package() {
short_desc+=" - Kyua testsuite"
depends="libxbps>=${version}"
provides="xbps-tests-${version}"
replaces="xbps-tests>=0"
pkg_install() {
vmove usr/tests
}
}
xbps-git_package() {
provides="xbps-${version}"
replaces="xbps>=0 xbps-devel>=0"
conf_files="/etc/xbps/xbps.conf"
depends="xbps-triggers libxbps-git-${version}_${revision}"
pkg_install() {
vmove all
}
}