summaryrefslogtreecommitdiff
path: root/desktop/pidgin-guifications/pidgin-guifications.SlackBuild
diff options
context:
space:
mode:
authorAndrew Brouwers <abrouwers@gmail.com>2010-05-11 20:00:10 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:10 +0200
commite19d85c5dff98e5bf9de3205f267ed8272f77678 (patch)
tree12c8cb4c2e792486b137c525377a8ba1b966c3e4 /desktop/pidgin-guifications/pidgin-guifications.SlackBuild
parentbb94e83e9efcd3770af0b7b9d79365e1d8ea2c87 (diff)
downloadslackbuilds-e19d85c5dff98e5bf9de3205f267ed8272f77678.tar.gz
desktop/pidgin-guifications: Added to 12.0 repository
Diffstat (limited to 'desktop/pidgin-guifications/pidgin-guifications.SlackBuild')
-rw-r--r--desktop/pidgin-guifications/pidgin-guifications.SlackBuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/desktop/pidgin-guifications/pidgin-guifications.SlackBuild b/desktop/pidgin-guifications/pidgin-guifications.SlackBuild
new file mode 100644
index 0000000000..8feff13512
--- /dev/null
+++ b/desktop/pidgin-guifications/pidgin-guifications.SlackBuild
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+# Slackware build script for pidgin-guifications
+# Written by Andrew Brouwers
+
+PRGNAM=pidgin-guifications
+VERSION=2.16
+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 INSTALL NEWS TODO doc/QUOTES"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xjf $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 \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+
+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