aboutsummaryrefslogtreecommitdiff
path: root/system/wacomtablet/wacomtablet.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-08 07:09:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-08 07:10:49 +0700
commit32ef2f765335cb6755a2a6d57858d1b78f57912a (patch)
treec4e82728d36824237cf3b33074d1b536c85b1a24 /system/wacomtablet/wacomtablet.SlackBuild
parent8106ce08a16602225ff39d3fb6ae20d9d646814f (diff)
system/wacomtablet: Updated for version 2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/wacomtablet/wacomtablet.SlackBuild')
-rw-r--r--system/wacomtablet/wacomtablet.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/system/wacomtablet/wacomtablet.SlackBuild b/system/wacomtablet/wacomtablet.SlackBuild
index bf1f54be30ba..35cb3a52467d 100644
--- a/system/wacomtablet/wacomtablet.SlackBuild
+++ b/system/wacomtablet/wacomtablet.SlackBuild
@@ -23,12 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wacomtablet
-VERSION=${VERSION:-2.1.0}
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCVERSION=$(printf $VERSION | tr _ -)
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -61,15 +59,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION
-tar xvf $CWD/114856-$PRGNAM-$SRCVERSION.tar.xz
-cd $PRGNAM-$SRCVERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fixes based on Arch Linux patch (thanks!)
sed -i \