aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-09 14:09:40 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-12 00:29:37 +0700
commitd773e772f3b75301a031db829e3aefe5847dc3e6 (patch)
treee161367fd4ff360758818c6f8b472eb07029f25d
parentb4d39049e48d761ce3343bc67c5c64f7bdf098d1 (diff)
system/xinput_calibrator: Fix tarball filename mess.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/xinput_calibrator/xinput_calibrator.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/system/xinput_calibrator/xinput_calibrator.SlackBuild b/system/xinput_calibrator/xinput_calibrator.SlackBuild
index 9bfc630f0b3f8..beb63e5bfd6c0 100644
--- a/system/xinput_calibrator/xinput_calibrator.SlackBuild
+++ b/system/xinput_calibrator/xinput_calibrator.SlackBuild
@@ -21,6 +21,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220209 bkw: Modified by SlackBuilds.org
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xinput_calibrator
@@ -37,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -65,11 +64,18 @@ fi
set -e
+# 20220209 bkw: wget saves the file with gobbledegook in the name (CGI params).
+TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz
+if [ ! -e "$TARBALL" ]; then
+ T="$( /bin/ls $CWD/$PRGNAM-$VERSION.tar.gz\?* 2>/dev/null | head -1 )"
+ [ -n "$T" ] && TARBALL="$T"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $TARBALL
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \