aboutsummaryrefslogtreecommitdiff
path: root/desktop/bunsen-themes/bunsen-themes.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/bunsen-themes/bunsen-themes.SlackBuild')
-rw-r--r--desktop/bunsen-themes/bunsen-themes.SlackBuild27
1 files changed, 11 insertions, 16 deletions
diff --git a/desktop/bunsen-themes/bunsen-themes.SlackBuild b/desktop/bunsen-themes/bunsen-themes.SlackBuild
index e2555abba31fa..c83afb8ed8fb2 100644
--- a/desktop/bunsen-themes/bunsen-themes.SlackBuild
+++ b/desktop/bunsen-themes/bunsen-themes.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for bunsen-themes.
#
-# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bunsen-themes
-VERSION=${VERSION:-8.3.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-9.4.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -34,16 +34,16 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
CWD=$(pwd)
-SRCVER="8.3.1-2"
+SRCVER=${SRCVER:-$VERSION-1}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-mkdir $PRGNAM-$VERSION
-ar p $CWD/${PRGNAM}_${SRCVER}_all.deb data.tar.xz | tar xvJ -C $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+mv $PRGNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -52,21 +52,16 @@ find -L . \
\( -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/themes
+cp -r themes/* $PKG/usr/share/themes/
+
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-gzip -dc usr/share/doc/$PRGNAM/changelog.Debian.gz > $PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog
-gzip -dc usr/share/doc/$PRGNAM/LICENSE.CC.gz > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE.CC
-gzip -dc usr/share/doc/$PRGNAM/LICENSE.GPL.gz > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE.GPL
-cp -a usr/share/doc/$PRGNAM/copyright $PKG/usr/doc/$PRGNAM-$VERSION/Copyright
+cp debian/{changelog,copyright} LICENSE.* README.md $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/share/themes
-cd usr/share/themes
-THEMES="Bunsen Bunsen-Blackish Bunsen-Blue Bunsen-Blue-Dark Bunsen-Dark CrunchBang"
-cp -a $THEMES $PKG/usr/share/themes/
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh