diff options
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 347a5eec3a..394d15eb24 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 |