summaryrefslogtreecommitdiff
path: root/desktop/Xfce-Theme-Manager/Xfce-Theme-Manager.SlackBuild
diff options
context:
space:
mode:
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 9a1952dc04..47fba1778a 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