overribadble variables, path
This commit is contained in:
parent
d0ba90bb28
commit
d60afd665f
1 changed files with 10 additions and 7 deletions
|
@ -2,23 +2,26 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
PRGNAM=nut
|
PRGNAM=nut
|
||||||
VERSION=16.4
|
VERSION=${VERSION:-16.4}
|
||||||
|
|
||||||
BUILD=1
|
BUILD=${BUILD:-1}
|
||||||
PACKAGER=cyco
|
PACKAGER=${PACKAGER:-cyco}
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=/tmp/$PACKAGER
|
TMP=${TMP:-/tmp/$PACKAGER}
|
||||||
PKG=$TMP/pkg-$PRGNAM
|
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
PREFIX=/usr
|
PREFIX=${PREFIX:-/usr}
|
||||||
|
|
||||||
# Cleaning
|
# Cleaning
|
||||||
rm -fr $TMP/$PRGNAM-$VERSION
|
rm -fr $TMP/$PRGNAM-$VERSION
|
||||||
rm -fr $PKG
|
rm -fr $PKG
|
||||||
|
|
||||||
|
[ ! -e $TMP/ ] && mkdir -p $TMP
|
||||||
|
|
||||||
# Fetching sources
|
# Fetching sources
|
||||||
( cd $TMP
|
( cd $TMP
|
||||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \
|
[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && \
|
||||||
|
@ -86,6 +89,6 @@ $PRGNAM: http://nut.sourceforge.net/
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$PACKAGER.txz
|
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$PACKAGER.txz
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue