summaryrefslogtreecommitdiffstats
path: root/source/x/glu/glu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/glu/glu.SlackBuild')
-rwxr-xr-xsource/x/glu/glu.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/x/glu/glu.SlackBuild b/source/x/glu/glu.SlackBuild
index 3e95616e1..146b3472c 100755
--- a/source/x/glu/glu.SlackBuild
+++ b/source/x/glu/glu.SlackBuild
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=glu
-VERSION=${VERSION:-9.0.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -67,7 +67,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \