dot

packages and services management
Log | Files | Refs | README

commit 029f1584208d4787d5c23d8ad6a5fe74a6952a27
parent f6d871178283173c868bce9822cd736d8dc997fe
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Wed,  2 Aug 2017 06:22:03 +0200

scripts/bin/pkg-build: moved default recipe to "$PKG/build"

Diffstat:
Abuild | 4++++
Mscripts/bin/pkg-build | 10+---------
2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/build b/build @@ -0,0 +1,4 @@ + find "$PKG/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} ';' + find "$PKG/${PWD##*/}" -name 'config.*' -exec cp -f {} . ';' + [ -f ./configure ] && ./configure --prefix="$PREFIX" + make && make PREFIX="$PREFIX" install clean diff --git a/scripts/bin/pkg-build b/scripts/bin/pkg-build @@ -5,15 +5,7 @@ ln -s bin sbin cd "$SRC/$1" || exit 1 -if [ -f "$PKG/$1/build" ] -then - sh "$PKG/$1/build" -else - find "$PKG/${PWD##*/}" -name '*.diff' -exec patch -N -p 1 -i {} ';' - find "$PKG/${PWD##*/}" -name 'config.*' -exec cp -f {} . ';' - [ -f ./configure ] && ./configure --prefix="$PREFIX" - make && make PREFIX="$PREFIX" install clean -fi +[ -f "$PKG/$1/build" ] && sh "$PKG/$1/build" || sh "$PKG/build" rm "$PREFIX/sbin" rmdir "$PREFIX/share/man" "$PREFIX"/* 2> /dev/null || true