diff options
author | Guillermo Bonvehi <gbonvehi@gmail.com> | 2010-05-12 17:41:39 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:41:39 +0200 |
commit | b93656bb08973c3b93a83b68e4bf5fb4d9cc0dd5 (patch) | |
tree | 454bf1642e0b81709ea552babe2c95eb17f3605a /libraries/libotr/libotr.SlackBuild | |
parent | 632c9eaf9b6a97fd5abb19f15d25e34685aafd99 (diff) |
libraries/libotr: Updated for version 3.2.0
Diffstat (limited to 'libraries/libotr/libotr.SlackBuild')
-rw-r--r-- | libraries/libotr/libotr.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/libraries/libotr/libotr.SlackBuild b/libraries/libotr/libotr.SlackBuild index 347a5eec3abd..394d15eb24da 100644 --- a/libraries/libotr/libotr.SlackBuild +++ b/libraries/libotr/libotr.SlackBuild @@ -23,10 +23,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libotr -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-$PRGNAM @@ -36,6 +37,8 @@ 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 @@ -55,14 +58,17 @@ 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 ) ( cd $PKG/usr/man @@ -71,8 +77,9 @@ make install DESTDIR=$PKG ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS UPGRADING \ - Protocol-v2.html $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README AUTHORS COPYING* ChangeLog INSTALL NEWS UPGRADING Protocol-v2.html \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |