diff options
Diffstat (limited to 'libraries/libosip2/libosip2.SlackBuild')
-rw-r--r-- | libraries/libosip2/libosip2.SlackBuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libraries/libosip2/libosip2.SlackBuild b/libraries/libosip2/libosip2.SlackBuild index d21b0fa679..56c7d9e96a 100644 --- a/libraries/libosip2/libosip2.SlackBuild +++ b/libraries/libosip2/libosip2.SlackBuild @@ -1,18 +1,17 @@ #!/bin/bash # Slackware build script for libosip2 +# Copyright (c) 2011 Eugene Wissner <eugen@flevum.de> PRGNAM=libosip2 -VERSION=${VERSION:-3.2.0} +VERSION=${VERSION:-3.5.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 @@ -54,24 +53,23 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --disable-static \ - --enable-gperf \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make DESTDIR=$PKG install find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION |