summaryrefslogtreecommitdiff
path: root/network/btpd/btpd.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-27 14:01:45 +1300
committerRobby Workman <rworkman@slackbuilds.org>2022-02-26 21:56:48 -0600
commit951b2e85a7841f74af92763c300668add34e9165 (patch)
tree8f37757e8640785fded45527fb008611b3ebc5e2 /network/btpd/btpd.SlackBuild
parentff6e2389056bb9d4f5a81ec0e3330ad39223a5d5 (diff)
downloadslackbuilds-951b2e85a7841f74af92763c300668add34e9165.tar.gz
network/btpd: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'network/btpd/btpd.SlackBuild')
-rw-r--r--network/btpd/btpd.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/network/btpd/btpd.SlackBuild b/network/btpd/btpd.SlackBuild
index 5dd69264e9..3d84a1859d 100644
--- a/network/btpd/btpd.SlackBuild
+++ b/network/btpd/btpd.SlackBuild
@@ -70,7 +70,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+# respecting content-disposition may include cgi params in the filename
+TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz
+if [ ! -e $TARBALL ]; then
+ TARBALL="$(/bin/ls $TARBALL\?* | head -1)"
+fi
+tar xvf $TARBALL
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \