summaryrefslogtreecommitdiffstats
path: root/source/a/mt-st/mt-st.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/mt-st/mt-st.SlackBuild')
-rwxr-xr-xsource/a/mt-st/mt-st.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/a/mt-st/mt-st.SlackBuild b/source/a/mt-st/mt-st.SlackBuild
index d1d4140eb..f872d1bcd 100755
--- a/source/a/mt-st/mt-st.SlackBuild
+++ b/source/a/mt-st/mt-st.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2018, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mt-st
-VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-3}
+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
@@ -66,7 +66,7 @@ mkdir -p $TMP $PKG
cd $TMP
rm -rf mt-st-$VERSION
-tar xvf $CWD/mt-st-$VERSION.tar.xz
+tar xvf $CWD/mt-st-$VERSION.tar.?z
cd mt-st-$VERSION
chown -R root:root .