mkports

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

commit c5eb1e4294a9a3b07586e4726bc97dc733ca53a7
parent f963992c3984b8e86adae80c01919b9b805b395c
Author: z3bra <willyatmailoodotorg>
Date:   Sun Jan 17 20:40:27 2016

Remove libtool archives upon install

Diffstat:
 default.mk | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/default.mk b/default.mk @@ -1,7 +1,7 @@ -destdir = ${PWD}/$pkg-$ver/.rootfs +destdir = `{printf '%s/%s/.rootfs' "$(pwd)" "$pkg-$ver"} # create a pack from an chroot install (see the "install" target) -$pkg\#$ver.tar.bz2:Q: $destdir +$pkg\#$ver.tar.bz2:Q: install cd $destdir tar -c `ls` | bzip2 -c > ../../$pkg\#$ver.tar.bz2 @@ -17,11 +17,12 @@ build:QV: fetch patch # install the pack to a .rootfs directory # this is where the "pack" target will chdir to create the pack -$destdir:QV: build +install:QV: build if [ ! -d $destdir ]; then mkdir -p $destdir cd $pkg-$ver make PREFIX= DESTDIR=$destdir install + find $destdir -name '*.la' -delete fi # patch your software using everything in ./patches @@ -52,9 +53,6 @@ fetch-archive:QV: rm -rf $pkg-$ver src=$(tar -xvf $out|sed -n 1p|cut -f1 -d/) if [ "$src" != "$pkg-$ver" ]; then - pwd - ls -l - echo mv "$src" "$pkg-$ver" mv "$src" "$pkg-$ver" fi fi @@ -66,4 +64,4 @@ clean:V: # remove the pack distclean:V: clean - rm -f $pkg:$ver.tar.bz2 + rm -f $pkg#$ver.tar.bz2