summaryrefslogtreecommitdiff
path: root/source/l/slang/slang.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/slang/slang.SlackBuild')
-rwxr-xr-xsource/l/slang/slang.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/l/slang/slang.SlackBuild b/source/l/slang/slang.SlackBuild
index a9fbd4bb..caaa320d 100755
--- a/source/l/slang/slang.SlackBuild
+++ b/source/l/slang/slang.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2011, 2013, 2015 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,9 +21,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-VERSION=${VERSION:-2.2.4}
-#DOCV=${DOCV:-2.2.4}
-BUILD=${BUILD:-3}
+PKGNAM=slang
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then