ports

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

commit 283e6cfb06c6abb27b9979df525860cf64debf01
parent 8f528331f49bd84a834c323319ee304f2ac66335
Author: z3bra <willyatmailoodotorg>
Date:   Wed Sep 16 01:21:49 2015

sbase, ubase: delete buildir on success

Diffstat:
 sbase/makeme | 11 +++--------
 ubase/makeme | 13 ++++++-------
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/sbase/makeme b/sbase/makeme @@ -4,13 +4,8 @@ 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 cat ../patches/*.patch | patch -Np1 @@ -20,5 +15,5 @@ package() { MANPREFIX=/share/man \ install cd .. - rm -r $name-$version + rm -rf $name-$version } diff --git a/ubase/makeme b/ubase/makeme @@ -2,15 +2,11 @@ name=ubase version=0.0 source=git://git.2f30.org/$name commit=HEAD +deps='musl' 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 cat ../patches/ubase-0.0-unstrip.patch @@ -19,4 +15,7 @@ package() { PREFIX= \ MANPREFIX=/share/man \ install + + cd .. + rm -rf $name-$version }