aboutsummaryrefslogtreecommitdiff
path: root/desktop/neutral/neutral.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/neutral/neutral.SlackBuild')
-rw-r--r--desktop/neutral/neutral.SlackBuild30
1 files changed, 17 insertions, 13 deletions
diff --git a/desktop/neutral/neutral.SlackBuild b/desktop/neutral/neutral.SlackBuild
index 2969f8ab36c8e..1d620b5b43c85 100644
--- a/desktop/neutral/neutral.SlackBuild
+++ b/desktop/neutral/neutral.SlackBuild
@@ -1,30 +1,37 @@
#!/bin/sh
# Slackware build script for neutral
-
-# Written by Grigorios Bouzakis (grbzks@gmail.com)
-# Modified by the SlackBuilds.org project.
-
-set -e
+# Written by Grigorios Bouzakis (grbzks@xsmail.com)
PRGNAM=neutral
-VERSION=1.13a
+VERSION=${VERSION:-1.13a}
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 -xzvf $CWD/28310-$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/28310-$PRGNAM-$VERSION.tar.gz
cd $PRGNAM
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -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/neutral
+sed -e 's/Icon Theme/Cursor Theme/' -i $TMP/neutral/index.theme
+cp -R $TMP/neutral/{cursors,index.theme} $PKG/usr/share/icons/neutral/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYRIGHT LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
@@ -32,10 +39,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-
-mkdir -p $PKG/usr/share/icons/neutral
-sed -e 's/Icon Theme/Cursor Theme/' -i $TMP/neutral/index.theme
-cp -R $TMP/neutral/{cursors,index.theme} $PKG/usr/share/icons/neutral/
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}