aboutsummaryrefslogtreecommitdiff
path: root/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
diff options
context:
space:
mode:
authorK.D.Hedger <kdhedger68713@gmail.com>2013-10-29 20:03:52 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-29 20:03:52 -0500
commit52266cd1eea5e56f37b8f9e5cc65cd7893d4ef23 (patch)
tree8d386ddaa64910463795c5234fa44c41a653029c /desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
parent6d9c55f9d3dfb77c26b7337c07099e4e9b968028 (diff)
desktop/Xfce-Theme-Manager: Updated for version 0.3.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild')
-rw-r--r--desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild31
1 files changed, 20 insertions, 11 deletions
diff --git a/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild b/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
index 9a1952dc04f7a..47fba1778a063 100644
--- a/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
+++ b/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
@@ -2,9 +2,7 @@
# Slackware build script for Xfce-Theme-Manager
-# Copyright 2012 K.D.Hedger
-# kdhedger@yahoo.co.uk
-#
+# Copyright 2013 K.D.Hedger United Kingdom
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,10 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Xfce-Theme-Manager
-VERSION=${VERSION:-0.1.18}
+VERSION=${VERSION:-0.3.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+TARNAM=$(echo $PRGNAM | tr [:upper:] [:lower:])
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -62,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$TARNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -71,16 +71,25 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed -i "s,-O3,$SLKCFLAGS," Makefile
-sed -i 's/rm $(PROGRAM)||true//' Makefile
-make install PREFIX=/usr DESTDIR=$PKG
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+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
-cp -a xfce-theme-manager $PKG/usr/bin/xfce-theme-manager
-cp -a Xfce-Theme-Manager.desktop $PKG/usr/share/applications
+mv $PKG/usr/share/man $PKG/usr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/Xfce-Theme-Manager/docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ln -s ../../doc/$PRGNAM-$VERSION $PKG/usr/share/Xfce-Theme-Manager/docs
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc