diff options
Diffstat (limited to 'source/a/inih')
-rwxr-xr-x | source/a/inih/inih.SlackBuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/a/inih/inih.SlackBuild b/source/a/inih/inih.SlackBuild index 698de302e..85e808bed 100755 --- a/source/a/inih/inih.SlackBuild +++ b/source/a/inih/inih.SlackBuild @@ -23,8 +23,9 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=inih -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2} +SRCVER=${SRCVER:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=$(echo $SRCVER | tr -d r) +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -74,9 +75,9 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf $PKGNAM-$VERSION -tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1 -cd $PKGNAM-$VERSION || exit 1 +rm -rf $PKGNAM-$SRCVER +tar xvf $CWD/$PKGNAM-$SRCVER.tar.?z || exit 1 +cd $PKGNAM-$SRCVER || exit 1 chown -R root:root . find . \ |