summaryrefslogtreecommitdiff
path: root/network/gajim/gajim.SlackBuild
diff options
context:
space:
mode:
authorMorten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk>2010-07-22 16:06:21 -0500
committerErik Hanson <erik@slackbuilds.org>2010-07-25 21:52:40 -0500
commit934dfe45a264513c337d504d48bbf36a253c2916 (patch)
treec468fa22f4a34b9d5bfbdac7bb57e6a8136d0544 /network/gajim/gajim.SlackBuild
parent7cd192a0d89fb9a61bc8cb3fdab5b9ab5e8cbca6 (diff)
downloadslackbuilds-934dfe45a264513c337d504d48bbf36a253c2916.tar.gz
network/gajim: Updated for version 0.13.4.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/gajim/gajim.SlackBuild')
-rw-r--r--network/gajim/gajim.SlackBuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/network/gajim/gajim.SlackBuild b/network/gajim/gajim.SlackBuild
index 5eeb4f21d5..29d14391fc 100644
--- a/network/gajim/gajim.SlackBuild
+++ b/network/gajim/gajim.SlackBuild
@@ -1,21 +1,18 @@
#!/bin/sh
-# Slackware build script for gajim
-# Written by Martin Lefebvre (dadexter@sekurity.com)
-# Slightly modified by the SlackBuild Project
-# - and once again by Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk>
+# Slackware build script for Gajim
+
+# Written by Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk>
PRGNAM=gajim
-VERSION=0.13.3
+VERSION=${VERSION:-0.13.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -39,7 +36,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -48,7 +45,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -62,11 +63,15 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# --docdir takes care of the program documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install