diff --git a/templates/xbps-devel/template b/templates/xbps-devel/template index 1cc60ea224..0247bb718c 100644 --- a/templates/xbps-devel/template +++ b/templates/xbps-devel/template @@ -1,7 +1,9 @@ # Template file for 'xbps' pkgname=xbps-devel version="$(date +%Y%m%d)" -build_style=custom-install +build_style=gnu_makefile +make_build_args="DESTDIR=$XBPS_DESTDIR/$pkgname-$version PREFIX=" +make_install_args="DESTDIR=$XBPS_DESTDIR/$pkgname-$version PREFIX=" short_desc="The XBPS package system (development branch)" maintainer="Juan RP " long_desc=" @@ -26,11 +28,8 @@ do_fetch() bzr branch lp:xbps ${pkgname}-${version} || return 1 } -do_install() +post_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 }