summaryrefslogtreecommitdiff
path: root/desktop/keynav/keynav.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-22 00:53:56 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-01-23 01:16:52 +0000
commitd23a81106f56f016a0614e09fa70519d74b11df8 (patch)
treec1d1f2c05f14f8e1591fbdad8e12ae4dc247e54d /desktop/keynav/keynav.SlackBuild
parentff9bb6d2553f3625e32cdd0bc383ef3fc4c4e7d1 (diff)
downloadslackbuilds-d23a81106f56f016a0614e09fa70519d74b11df8.tar.gz
desktop/keynav: Updated for version 20150730+4ae486d.
Fixes build failure. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/keynav/keynav.SlackBuild')
-rw-r--r--desktop/keynav/keynav.SlackBuild30
1 files changed, 18 insertions, 12 deletions
diff --git a/desktop/keynav/keynav.SlackBuild b/desktop/keynav/keynav.SlackBuild
index 1db89dfbc5..393fbed538 100644
--- a/desktop/keynav/keynav.SlackBuild
+++ b/desktop/keynav/keynav.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=keynav
-VERSION=${VERSION:-0.20101014.3067}
+VERSION=${VERSION:-20150730+4ae486d}
+COMMIT="4ae486db6697877e84b66583a0502afc7301ba16"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,7 +40,6 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-BUILDDIR=$TMP/$PRGNAM-$VERSION
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -57,11 +57,19 @@ fi
set -e
-rm -rf $PKG $BUILDDIR
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar zxvf ${CWD}/${PRGNAM}-${VERSION}.tar.gz
-cd $BUILDDIR
+rm -rf $PRGNAM-$COMMIT
+tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz || tar xvf $CWD/$COMMIT.tar.gz
+cd $PRGNAM-$COMMIT
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
make keynav
# install
@@ -71,13 +79,11 @@ cp -a keynav $PKG/usr/bin
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-#find $PKG/usr/man -type f -exec gzip -9 {} \;
-
-DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
-mkdir -p $DOCDIR
-
-cp -a CHANGELIST COPYRIGHT README VERSION keynavrc $DOCDIR
-cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGELIST COPYRIGHT README TODO keynavrc \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc