aboutsummaryrefslogtreecommitdiff
path: root/misc/xbanish
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-29 15:49:44 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-01 09:00:29 +0700
commitcd14ccb5c8373c6b49a458298b33b0cb60d4269e (patch)
tree7c96314931cd69b98b559ec48c5a3d3244e04f74 /misc/xbanish
parent3812e5a58eb8c6c5fd1197c97a7cd98b2a89c447 (diff)
misc/xbanish: Updated for version 1.6, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'misc/xbanish')
-rw-r--r--misc/xbanish/README13
-rw-r--r--misc/xbanish/slack-desc4
-rw-r--r--misc/xbanish/xbanish.SlackBuild39
-rw-r--r--misc/xbanish/xbanish.info10
4 files changed, 32 insertions, 34 deletions
diff --git a/misc/xbanish/README b/misc/xbanish/README
index 69541eac2f95d..bb5e957055dca 100644
--- a/misc/xbanish/README
+++ b/misc/xbanish/README
@@ -1,6 +1,9 @@
-xbanish hides the mouse cursor when you start typing, and shows it again when
-the mouse cursor moves or a mouse button is pressed. This is similar to
-xterm's pointerMode setting, but xbanish works globally in the X11 session.
+xbanish (banish the mouse cursor when typing)
-One can easily start this automatically by putting `/usr/bin/xbanish &' to eg.
-~/.xinitrc or some other DM specific startup file.
+xbanish hides the mouse cursor when you start typing, and shows it
+again when the mouse cursor moves or a mouse button is pressed. This is
+similar to xterm's pointerMode setting, but xbanish works globally in
+the X11 session.
+
+One can easily start this automatically by putting "/usr/bin/xbanish &"
+in ~/.xinitrc or some other WM/DE-specific startup file.
diff --git a/misc/xbanish/slack-desc b/misc/xbanish/slack-desc
index a9adb786c3bd2..4ef0b3de7727e 100644
--- a/misc/xbanish/slack-desc
+++ b/misc/xbanish/slack-desc
@@ -11,9 +11,9 @@ xbanish:
xbanish: xbanish hides the mouse cursor when you start typing, and shows it
xbanish: again when the mouse cursor moves or a mouse button is pressed.
xbanish: This is similar to xterm's pointerMode setting, but xbanish works
-xbanish: globally in the X11 session
-xbanish:
+xbanish: globally in the X11 session.
xbanish:
xbanish: Homepage: https://github.com/jcs/xbanish
xbanish:
xbanish:
+xbanish:
diff --git a/misc/xbanish/xbanish.SlackBuild b/misc/xbanish/xbanish.SlackBuild
index 2f4ba15d9c1e9..bcefc8e187dbb 100644
--- a/misc/xbanish/xbanish.SlackBuild
+++ b/misc/xbanish/xbanish.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Copyright (c) 2013-2018 LEVAI Daniel
+# Copyright (c) 2020 B. Watson
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,14 +28,20 @@
# Build script for xbanish
+# 20200129 bkw:
+# - take over maintenance
+# - update for v1.6
+# - i486 => i586
+# - use proper github download URL
+
PRGNAM=xbanish
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -45,8 +52,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ];then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ];then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -65,31 +72,19 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-if [ -e $CWD/v$VERSION.tar.gz ]; then
- tar xvf $CWD/v$VERSION.tar.gz
-else
- tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-fi
+tar xvf $CWD/$PRGNAM-$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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" make
-mkdir -p $PKG/usr/bin
-mkdir -p $PKG/usr/man/man1
-make install PREFIX=/usr DESTDIR=$PKG
+make install PREFIX=/usr DESTDIR=$PKG # already stripped
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
-cp -a README $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -a README* $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc -type f -exec chmod 0644 {} \;
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/misc/xbanish/xbanish.info b/misc/xbanish/xbanish.info
index a381b52c77070..c66d7e7a154ea 100644
--- a/misc/xbanish/xbanish.info
+++ b/misc/xbanish/xbanish.info
@@ -1,10 +1,10 @@
PRGNAM="xbanish"
-VERSION="1.5"
+VERSION="1.6"
HOMEPAGE="https://github.com/jcs/xbanish"
-DOWNLOAD="https://github.com/jcs/xbanish/archive/v1.5.tar.gz"
-MD5SUM="23e3846827ec6eb20e954f3b3141c2af"
+DOWNLOAD="https://github.com/jcs/xbanish/archive/v1.6/xbanish-1.6.tar.gz"
+MD5SUM="dc1320b6eee1e3e5eb008554bbeb060f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="LEVAI Daniel"
-EMAIL="leva@ecentrum.hu"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"