void-packages/templates/xbps-devel/template

37 lines
999 B
Plaintext
Raw Normal View History

# Template file for 'xbps'
pkgname=xbps-devel
version="$(date +%Y%m%d)"
build_style=custom-install
short_desc="The XBPS package system (development branch)"
maintainer="Juan RP <xtraeme@gmail.com>"
long_desc="
The XBPS package system. A new, fast, from scratch and simple
binary package manager. This packages includes code from a development
branch available from https://launchpad.net/xbps"
replaces="xbps"
nofetch=yes
noextract=yes
Add_dependency full glibc
Add_dependency full libarchive
Add_dependency full proplib
Add_dependency full openssl
Add_dependency build bzr
Add_dependency build asciidoc
do_fetch()
{
msg_normal "Fetching source from launchpad:xbps head branch..."
bzr branch lp:xbps ${pkgname}-${version} || return 1
}
do_install()
{
cd ${wrksrc} || return 1
make DESTDIR=${DESTDIR} PREFIX= install clean || return 1
make DESTDIR=${DESTDIR} PREFIX= STATIC=1 install clean || return 1
mkdir -p ${DESTDIR}/usr || return 1
mv ${DESTDIR}/share ${DESTDIR}/usr || return 1
}