summaryrefslogtreecommitdiff
path: root/desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-13 00:24:00 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:24:00 +0200
commit9ef8cc5b1828f466d00ab7a6f4895e9ed665ddf0 (patch)
treecd3b7b70b77c33ec06ee8a051f8eb763867694e2 /desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild
parentb9526ad7a0a11d455c023c0820d064c063975f2c (diff)
downloadslackbuilds-9ef8cc5b1828f466d00ab7a6f4895e9ed665ddf0.tar.gz
desktop/xfce4-xmms-plugin: Updated for version 0.5.2
Diffstat (limited to 'desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild')
-rw-r--r--desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild b/desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild
index b028a98873..fa6e91793b 100644
--- a/desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild
+++ b/desktop/xfce4-xmms-plugin/xfce4-xmms-plugin.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
-#
+
# Slackware build script for xfce4-xmms-plugin
+
# (C) 2007 Michael Wagner <lapinours@web.de>
# All rights reserved.
#
@@ -22,44 +23,53 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xfce4-xmms-plugin
-VERSION=0.5.1
+VERSION=0.5.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc/xfce \
--disable-static \
- || exit 1
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
@@ -67,4 +77,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}