summaryrefslogtreecommitdiffstats
path: root/desktop/wmcliphist
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmcliphist')
-rw-r--r--desktop/wmcliphist/wmcliphist.SlackBuild22
-rw-r--r--desktop/wmcliphist/wmcliphist.info2
2 files changed, 14 insertions, 10 deletions
diff --git a/desktop/wmcliphist/wmcliphist.SlackBuild b/desktop/wmcliphist/wmcliphist.SlackBuild
index c146b5861d..9bf7aba9db 100644
--- a/desktop/wmcliphist/wmcliphist.SlackBuild
+++ b/desktop/wmcliphist/wmcliphist.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for wmcliphist
# Originally written by Shining <email removed>
-# Modified & now maintained by B. Watson <yalhcru@gmail.com>. Original
+# Modified & now maintained by B. Watson <urchlay@slackware.uk>. Original
# version had no license. Modified version released under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
@@ -22,10 +22,13 @@
# - Get rid of annoying assertion "'GTK_IS_WIDGET (widget)' failed" warnings
# - Document annoying bug I don't know how to fix, in BUG.txt
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=wmcliphist
VERSION=${VERSION:-2.1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -65,11 +72,8 @@ cd $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd dockapps
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 {} \+
# Patches are from: https://packages.debian.org/sid/wmcliphist
# Probably not even necessary (they fix compiler warnings), and not
@@ -105,4 +109,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/wmcliphist/wmcliphist.info b/desktop/wmcliphist/wmcliphist.info
index 6f1247defd..f614e2e0ef 100644
--- a/desktop/wmcliphist/wmcliphist.info
+++ b/desktop/wmcliphist/wmcliphist.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"