summaryrefslogtreecommitdiff
path: root/desktop/e16.theme.pack/e16.theme.pack.SlackBuild
diff options
context:
space:
mode:
authorMichael Heras <userxbw@gmail.com>2018-11-08 13:13:54 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:46:59 +0700
commit8add1cc03f1cf62ad22408e357e415cab34debfc (patch)
tree7d6c0a01279762bdd12d82c1674b86a8abfb6bdd /desktop/e16.theme.pack/e16.theme.pack.SlackBuild
parentc1b08c39ec111f4ba8de4fd818916f377c17e78a (diff)
downloadslackbuilds-8add1cc03f1cf62ad22408e357e415cab34debfc.tar.gz
desktop/e16.theme.pack: Updated for version 1.0.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/e16.theme.pack/e16.theme.pack.SlackBuild')
-rw-r--r--desktop/e16.theme.pack/e16.theme.pack.SlackBuild113
1 files changed, 52 insertions, 61 deletions
diff --git a/desktop/e16.theme.pack/e16.theme.pack.SlackBuild b/desktop/e16.theme.pack/e16.theme.pack.SlackBuild
index 18b92571fb..f97b1ccf70 100644
--- a/desktop/e16.theme.pack/e16.theme.pack.SlackBuild
+++ b/desktop/e16.theme.pack/e16.theme.pack.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for <e16.theme.pack>
-# Copyright <2018> <Michael Heras>
+# Copyright <Oct-31-2018> <Michael Heras>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,17 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=e16.theme.pack
-VERSION=${VERSION:-1.0.2}
+VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -48,60 +42,57 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-while read dir ; do
- while read subdir ; do
- case "$subdir" in
- Eterm)
- ThemePkgName="$dir"
- appName="$subdir"
- Pkgto="$PKG/usr/share/Eterm/themes/$ThemePkgName"
- if [[ -d /usr/share/Eterm ]] ; then
- {
- mkdir -p $Pkgto
- cp -r $ThemePkgName/$appName/* "$Pkgto"
- }
- fi
- ;;
- e16)
- ThemePkgName="$dir"
- appName="$subdir"
- Pkgto="$PKG/usr/share/e16/themes/$ThemePkgName"
- if [[ -d /usr/share/e16 ]] ; then
- {
- mkdir -p $Pkgto
- cp -r $ThemePkgName/$appName/* "$Pkgto"
- }
- fi
- ;;
- audacious)
- ThemePkgName="$dir"
- appName="$subdir"
- Pkgto="$PKG/usr/share/audacious/Skins/$ThemePkgName"
- if [[ -d /usr/share/audacious ]] ; then
- {
- mkdir -p $Pkgto
- cp -r $ThemePkgName/$appName/* "$Pkgto"
- }
- fi
- ;;
- gkrellm2)
- ThemePkgName="$dir"
- appName="$subdir"
- Pkgto="$PKG/usr/share/gkrellm2/themes/$ThemePkgName"
- if [[ -d /usr/lib64/gkrellm2 ]] ;
- then
- {
- mkdir -p /usr/share/gkrellm2/themes
- mkdir -p $Pkgto
- cp -r $ThemePkgName/$appName/* "$Pkgto"
- }
- fi
- ;;
- esac
- done <<< "$(ls $(pwd)/$dir)"
-done <<<"$(ls)"
+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 {} \;
+
+for subdir in */* ; do
+
+ ThemePkgName=$(dirname "$subdir")
+ appName=$(basename "$subdir")
+
+ case "$appName" in
+
+ Eterm)
+ Pkgto="$PKG/usr/share/Eterm/themes/$ThemePkgName"
+ if [ -d /usr/share/Eterm ] ; then
+ mkdir -p $Pkgto
+ cp -r $ThemePkgName/$appName/* "$Pkgto"
+ fi
+ ;;
+
+ e16)
+ Pkgto="$PKG/usr/share/e16/themes/$ThemePkgName"
+ if [ -d /usr/share/e16 ] ; then
+ mkdir -p $Pkgto
+ cp -r $ThemePkgName/$appName/* "$Pkgto"
+ fi
+ ;;
+
+ audacious)
+ Pkgto="$PKG/usr/share/audacious/Skins/$ThemePkgName"
+ if [ -d /usr/share/audacious ] ; then
+ mkdir -p $Pkgto
+ cp -r $ThemePkgName/$appName/* "$Pkgto"
+ fi
+ ;;
+
+ gkrellm2)
+ Pkgto="$PKG/usr/share/gkrellm2/themes/$ThemePkgName"
+ if [ -d /usr/lib64/gkrellm2 ] ; then
+ mkdir -p $Pkgto
+ cp -r $ThemePkgName/$appName/* "$Pkgto"
+ fi
+ ;;
+
+ esac
+
+done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install