aboutsummaryrefslogtreecommitdiff
path: root/network/pidgin-otr/pidgin-otr.SlackBuild
diff options
context:
space:
mode:
authorGuillermo Bonvehi <gbonvehi@gmail.com>2010-05-12 17:44:07 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:44:07 +0200
commit40562dc9577c9028898cb54e0d65f36c7dd340a3 (patch)
tree38e679bb7a64925a9eb39c18b3d938ac786a1704 /network/pidgin-otr/pidgin-otr.SlackBuild
parent153cd96a1860bc327b45ed6e49f9726e47be6017 (diff)
network/pidgin-otr: Updated for version 3.2.0
Diffstat (limited to 'network/pidgin-otr/pidgin-otr.SlackBuild')
-rw-r--r--network/pidgin-otr/pidgin-otr.SlackBuild31
1 files changed, 19 insertions, 12 deletions
diff --git a/network/pidgin-otr/pidgin-otr.SlackBuild b/network/pidgin-otr/pidgin-otr.SlackBuild
index b5a9490e7518f..1cded875ff612 100644
--- a/network/pidgin-otr/pidgin-otr.SlackBuild
+++ b/network/pidgin-otr/pidgin-otr.SlackBuild
@@ -23,21 +23,22 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pidgin-otr
-VERSION=3.1.0
+VERSION=3.2.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}
-PKG_NAME=$(echo $PRGNAM | tr - _)
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -57,24 +58,30 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-static=no
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
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
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
-mkdir -p $PKG/usr/doc/$PKG_NAME-$VERSION/po
-cp -a README AUTHORS COPYING ChangeLog INSTALL NEWS \
- $PKG/usr/doc/$PKG_NAME-$VERSION
-cp -a po/README po/ChangeLog $PKG/usr/doc/$PKG_NAME-$VERSION/po
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PKG_NAME-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/po
+cp -a \
+ README AUTHORS COPYING ChangeLog INSTALL NEWS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ po/README po/ChangeLog \
+ $PKG/usr/doc/$PRGNAM-$VERSION/po
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKG_NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz