aboutsummaryrefslogtreecommitdiff
path: root/desktop/dwm/dwm.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-11-27 10:09:49 -0800
committerRyan P.C. McQuen <ryan.q@linux.com>2015-11-27 10:09:49 -0800
commit7a7e1d1d8f5524380d24875ceb74ada9fe528b61 (patch)
tree690788a27a5b9c114e5a5ecb6ed2a1fe99aa0f8d /desktop/dwm/dwm.SlackBuild
parentc96747f4ed80529657ae9609440cdbf7a69a5620 (diff)
desktop/dwm: Updated for version 6.1.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'desktop/dwm/dwm.SlackBuild')
-rw-r--r--desktop/dwm/dwm.SlackBuild21
1 files changed, 13 insertions, 8 deletions
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild
index ea2c5a2696aa8..7173b901cfe82 100644
--- a/desktop/dwm/dwm.SlackBuild
+++ b/desktop/dwm/dwm.SlackBuild
@@ -1,8 +1,7 @@
#!/bin/sh
-
# Slackware build script for dwm
-
-# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com
+#
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
#
# With permission of original maintainer Tom Canich.
# All rights reserved.
@@ -34,8 +33,8 @@
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dwm
-VERSION=${VERSION:-6.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-6.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -74,12 +73,18 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
mv config.def.h config.h
+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 {} \;
### Per community request, this section has been restored
### for those that wish to include custom patches.
### A sample patch is included in the patches/ directory
-### that will change the default terminal from 'uxterm'
-### to 'st'. -Ryan
+### that will change the default terminal from 'st'
+### to 'uxterm'. -Ryan
#
#for i in $(ls $CWD/patches); do
# patch -p0 < $CWD/patches/$i
@@ -104,7 +109,7 @@ make install \
mkdir -p $PKG/etc/X11/xinit
install -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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 {} \;