diff options
-rw-r--r-- | system/xinput_calibrator/xinput_calibrator.SlackBuild | 14 |
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 . \ |