aboutsummaryrefslogtreecommitdiff
path: root/desktop/wmctrl/wmctrl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmctrl/wmctrl.SlackBuild')
-rw-r--r--desktop/wmctrl/wmctrl.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/desktop/wmctrl/wmctrl.SlackBuild b/desktop/wmctrl/wmctrl.SlackBuild
index b28f02e9fa..f4cc113d55 100644
--- a/desktop/wmctrl/wmctrl.SlackBuild
+++ b/desktop/wmctrl/wmctrl.SlackBuild
@@ -6,11 +6,15 @@
# Modified by Mason Loring Bliss.
# (assumed to be public domain per our submission policy)
+# 20250201 bkw: 1.07 BUILD=3
+# - remove useless INSTALL and empty NEWS from doc dir.
+# - use install-strip.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wmctrl
VERSION=${VERSION:-1.07}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +26,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
@@ -34,7 +35,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README"
+DOCS="AUTHORS ChangeLog COPYING README"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -61,9 +62,9 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -76,10 +77,7 @@ CFLAGS="$SLKCFLAGS" \
patch -p0 < $CWD/patch-64bit.diff
make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install-strip DESTDIR=$PKG
( cd $PKG/usr/man ; find . -type f -exec gzip -9 {} \; )