ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 0249db239dc0ab87c6b68e03c6d9bd66c6b4f524
parent 61d03d31c5d567088f9f462de6165c5c700c1c67
Author: z3bra <willyatmailoodotorg>
Date:   Tue Sep 15 20:49:02 2015

Remove build directory on success

Diffstat:
 ash/makeme      |  3 +++
 binutils/makeme |  3 +++
 curl/makeme     |  3 +++
 init/makeme     |  3 +++
 iproute2/makeme |  2 ++
 mksh/makeme     |  3 +++
 ncurses/makeme  |  3 +++
 smdev/makeme    | 21 +++++++++------------
 vis/makeme      | 14 ++++++--------
 9 files changed, 35 insertions(+), 20 deletions(-)

diff --git a/ash/makeme b/ash/makeme @@ -20,4 +20,7 @@ package() chmod 755 $WORKDIR/$name/bin/sh mkdir -p $WORKDIR/$name/usr/share/man/man1 cp sh.1 $WORKDIR/$name/usr/share/man/man1/sh.1 + + cd .. + rm -r $name-$version } diff --git a/binutils/makeme b/binutils/makeme @@ -15,4 +15,7 @@ package() { make tooldir= CC=$CC LDFLAGS="$LDFLAGS" make tooldir= DESTDIR=$WORKDIR/$name install + + cd ../.. + rm -rf $name-$version } diff --git a/curl/makeme b/curl/makeme @@ -34,4 +34,7 @@ package() { make DESTDIR=$WORKDIR/$name install find $WORKDIR/$name -name '*.la' -delete + + cd .. + rm -r $name-$version } diff --git a/init/makeme b/init/makeme @@ -25,4 +25,7 @@ package() { chmod 750 $WORKDIR/$name/usr/libexec/power.subr ln -sf /usr/libexec/power.subr $WORKDIR/$name/sbin/reboot ln -sf /usr/libexec/power.subr $WORKDIR/$name/sbin/poweroff + + cd .. + rm -r $name-$version } diff --git a/iproute2/makeme b/iproute2/makeme @@ -18,4 +18,6 @@ package() { make DESTDIR=$WORKDIR/$name PREFIX='' DATADIR=/usr/share install rm -rf $WORKDIR/$name/usr/share/doc + cd .. + rm -r $name-$version } diff --git a/mksh/makeme b/mksh/makeme @@ -16,4 +16,7 @@ package() { install -m 0644 mksh.1 $WORKDIR/$name/usr/share/man/man1/mksh.1 install -m 0644 dot.mkshrc $WORKDIR/$name/usr/share/examples/mkshrc install -m 0644 dot.mkshrc $WORKDIR/$name/etc/mkshrc + + cd .. + rm -rf $name } diff --git a/ncurses/makeme b/ncurses/makeme @@ -29,4 +29,7 @@ package() { find $WORKDIR/$name -name '*.la' -delete + + cd .. + rm -rf $name-$version } diff --git a/smdev/makeme b/smdev/makeme @@ -4,17 +4,14 @@ source=git://git.2f30.org/$name commit=HEAD package() { - if cd $name-version; then - git reset --hard - git pull - else - git clone $source $name-$version - cd $name-$version - fi - + git clone $source $name-$version cd $name-$version - make CC="$CC" LDFLAGS="$LDFLAGS" - make DESTDIR=$WORKDIR/$name \ - PREFIX= \ - install + + make CC="$CC" LDFLAGS="$LDFLAGS" + make DESTDIR=$WORKDIR/$name \ + PREFIX= \ + install + + cd .. + rm -rf $name-$version } diff --git a/vis/makeme b/vis/makeme @@ -4,18 +4,16 @@ source=git://github.com/martanne/vis commit=HEAD package() { - if cd $name-version; then - git reset --hard - git pull - else - git clone $source $name-$version - fi - + git clone $source $name-$version cd $name-$version + make CC="$CC" LDFLAGS="$LDFLAGS" make DESTDIR=$WORKDIR/$name \ PREFIX= \ - MANPREFIX=/usr/share/man \ + MANPREFIX=/share/man \ install + + cd .. + rm -rf $name-$version }