system/xinput_calibrator: Fix tarball filename mess.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-09 14:09:40 -05:00 committed by Willy Sudiarto Raharjo
parent b4d39049e4
commit d773e772f3
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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 . \