From e988b01afdb9a8bc8f3f3fe9b3d75e650509a89c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 7 Nov 2009 12:13:39 +0100 Subject: [PATCH] Added xbps-devel build template. This package will provide xbps utils from development branch available from launchpad.net/xbps. --HG-- extra : convert_revision : 732e17d2f5a43a464538967104f99899d93484a2 --- templates/xbps-devel/template | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/xbps-devel/template diff --git a/templates/xbps-devel/template b/templates/xbps-devel/template new file mode 100644 index 00000000000..1cc60ea2243 --- /dev/null +++ b/templates/xbps-devel/template @@ -0,0 +1,36 @@ +# 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 " +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 +}