From 951b2e85a7841f74af92763c300668add34e9165 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Sun, 27 Feb 2022 14:01:45 +1300 Subject: network/btpd: Fix github tarball handling. Signed-off-by: Andrew Clemons --- network/btpd/btpd.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'network') diff --git a/network/btpd/btpd.SlackBuild b/network/btpd/btpd.SlackBuild index 5dd69264e9de..3d84a1859d1a 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 . \ -- cgit v1.2.3