From d773e772f3b75301a031db829e3aefe5847dc3e6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 9 Feb 2022 14:09:40 -0500 Subject: system/xinput_calibrator: Fix tarball filename mess. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/xinput_calibrator/xinput_calibrator.SlackBuild | 14 ++++++++++---- 1 file 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 . \ -- cgit v1.2.3