From 0ae9607dcc4cdcd296fcd327ed859b2ecd6a4e2e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 16 Jan 2010 03:40:51 +0100 Subject: [PATCH] net-tools: split build stuff into do_build(). --HG-- extra : convert_revision : ab904f04015a8dbbae48c7ea7203ad5a44c53117 --- srcpkgs/net-tools/template | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/srcpkgs/net-tools/template b/srcpkgs/net-tools/template index a8a0aa093e..f28b703e61 100644 --- a/srcpkgs/net-tools/template +++ b/srcpkgs/net-tools/template @@ -12,13 +12,18 @@ long_desc=" Add_dependency run glibc -do_install() +do_build() { - cd $wrksrc + cd ${wrksrc} || return 1 . $XBPS_HELPERSDIR/replace-interpreter.sh replace_interpreter bash configure.sh - yes "" | make || exit 1 - make BASEDIR=${DESTDIR} update + yes "" | make || return 1 +} + +do_install() +{ + cd ${wrksrc} || return 1 + make BASEDIR=${DESTDIR} update || return 1 rm -rf ${DESTDIR}/usr/share/man/man1 }