mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 6ead52508268ed0852fc9eedf141475384a9bf01
parent 24078e508f434eed6094444591a87d66b4c0307a
Author: z3bra <willyatmailoodotorg>
Date:   Wed Apr 20 13:37:19 2016

Add $REPO variable for built packs

Packs will now be created in ${REPO} instead if ${srcdir}.
This allow a finer control, and leave more room for fully
automated builds.
To get the old behavior back, simply use:

    REPO = `{pwd}

Diffstat:
 config.mk  | 1 +
 default.mk | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/config.mk b/config.mk @@ -2,6 +2,7 @@ #CROSS = /opt/cross/${TOOLCHAIN_TRIPLET} #PATH = ${CROSS}/bin:${PATH} ROOT = /ns/distro/fs +REPO = /ns/distro/pm/repo NPROC = 8 workdir = `{printf '/tmp/mkports/%s-%s' "$pkg" "$(id -u)"} diff --git a/default.mk b/default.mk @@ -7,7 +7,8 @@ archive = `{basename $url 2>/dev/null || echo /dev/null} # create a pack from an chroot install (see the "install" target) $pkg\#$ver.tar.bz2: fetch patch build install cleanup cd $destdir - tar -c `ls` | bzip2 -c > $srcdir/$pkg\#$ver.tar.bz2 + mkdir -p ${REPO} + tar -c `ls` | bzip2 -c > ${REPO}/$pkg\#$ver.tar.bz2 # recipe trying to follow the most common pattern in software # building @@ -88,4 +89,4 @@ clean:V: # remove the pack distclean:V: clean - rm -f $srcdir/$pkg#$ver.tar.bz2- \ No newline at end of file + rm -f ${REPO}/$pkg#$ver.tar.bz2+ \ No newline at end of file