summaryrefslogtreecommitdiff
path: root/desktop/faience-icon-theme/faience-icon-theme.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/faience-icon-theme/faience-icon-theme.SlackBuild')
-rw-r--r--desktop/faience-icon-theme/faience-icon-theme.SlackBuild39
1 files changed, 19 insertions, 20 deletions
diff --git a/desktop/faience-icon-theme/faience-icon-theme.SlackBuild b/desktop/faience-icon-theme/faience-icon-theme.SlackBuild
index c0b0ed2191..eedd43dd28 100644
--- a/desktop/faience-icon-theme/faience-icon-theme.SlackBuild
+++ b/desktop/faience-icon-theme/faience-icon-theme.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for faience-icon-theme
-# Homepage: http://tiheum.deviantart.com/art/Faience-icon-theme-255099649
-
-# Copyright 2015 Edinaldo P. Silva <edps.mundognu@gmail.com>
+#
+# Slackware build script for faience-icon-theme.
+#
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="faience-icon-theme"
-VERSION=${VERSION:-0.5}
+VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,19 +36,19 @@ CWD=$(pwd)
set -e
-rm -fr $TMP/$PRGNAM-$VERSION $PKG
-mkdir -p $TMP $PKG $OUTPUT $TMP/$PRGNAM-$VERSION
-cd $TMP/$PRGNAM-$VERSION
-unzip $CWD/$PRGNAM\_$VERSION.zip
-
-TARBALLS="Faience Faience-Azur Faience-Ocre Faience-Claire"
-for i in $TARBALLS; do
- tar -xvf $i.tar.gz
-done
-chown -R root.root .
-find . -type f -exec chmod 644 {} \;
-find . -type d -exec chmod 755 {} \;
-
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz
+mv $PRGNAM-0.5 $PRGNAM-$VERSION
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/share/icons
@@ -59,8 +59,7 @@ cp -a Faience \
$PKG/usr/share/icons
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp AUTHORS COPYING ChangeLog README INSTALL UNINSTALL $PKG/usr/doc/$PRGNAM-$VERSION
-
+cp -a debian/{changelog,copyright} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install