summaryrefslogtreecommitdiff
path: root/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <slakmagik@gmail.com>2010-07-25 18:08:59 -0500
committerErik Hanson <erik@slackbuilds.org>2010-07-25 21:52:41 -0500
commitad533e5b9dbd710ba9aa578f7194c5be82be96e7 (patch)
tree60882cb64a137ac760aad99b823c7a93204b11cd /desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild
parent2f2e7d16141c3ec601c867afeca5b8d4e7d8f6e7 (diff)
downloadslackbuilds-ad533e5b9dbd710ba9aa578f7194c5be82be96e7.tar.gz
desktop/Vanilla-DMZ: Added (style neutral scalable cursor theme)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild')
-rw-r--r--desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild b/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild
new file mode 100644
index 0000000000..bc83a816c3
--- /dev/null
+++ b/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+# Slackware build script for vanilla-dmz
+# Written by slakmagik <slakmagik@gmail.com>
+# Released under the WTFPL
+
+PRGNAM=Vanilla-DMZ
+SRCNAM=vanilla-dmz
+VERSION=${VERSION:-0.4}
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
+cd $PRGNAM
+# cut the size of the package in half
+( cd cursors
+ md5sum * | sort -r | while read SUM FILE; do
+ if [ "$OLD_SUM" = $SUM ]; then
+ ln -sf $OLD_FILE $FILE
+ else
+ OLD_SUM=$SUM
+ OLD_FILE=$FILE
+ fi
+ done )
+chown -R root:root .
+# we need to test for links here because -perm 777 will find them and chmod
+# will chmod their targets 755 when they should be 644
+find . ! -type l \( \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
+ -o -perm 400 \) -exec chmod 644 {} \; \)
+
+mkdir -p $PKG/usr/{share/icons/$PRGNAM,doc/$PRGNAM-$VERSION}
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+mv $TMP/$PRGNAM $PKG/usr/share/icons/
+
+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}