aboutsummaryrefslogtreecommitdiff
path: root/libraries/libgadu/libgadu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libgadu/libgadu.SlackBuild')
-rw-r--r--libraries/libgadu/libgadu.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/libraries/libgadu/libgadu.SlackBuild b/libraries/libgadu/libgadu.SlackBuild
index 668254354918c..52edd32c15d73 100644
--- a/libraries/libgadu/libgadu.SlackBuild
+++ b/libraries/libgadu/libgadu.SlackBuild
@@ -1,16 +1,18 @@
#!/bin/bash
+# Slackware build script for libgadu
+
+# Written by marco slociu@wp.pl
+
PRGNAM=libgadu
-VERSION=1.8.2
+VERSION=${VERSION:-1.9.0}
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
@@ -34,6 +36,8 @@ else
LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -59,15 +63,15 @@ CXXFLAGS="$SLKCFLAGS" \
--program-suffix="" \
--build=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc