summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libotr/libotr.SlackBuild19
-rw-r--r--libraries/libotr/libotr.info6
2 files changed, 16 insertions, 9 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
diff --git a/libraries/libotr/libotr.info b/libraries/libotr/libotr.info
index 5cc88eadb2..cc2fa8b83c 100644
--- a/libraries/libotr/libotr.info
+++ b/libraries/libotr/libotr.info
@@ -1,8 +1,8 @@
PRGNAM="libotr"
-VERSION="3.1.0"
+VERSION="3.2.0"
HOMEPAGE="http://www.cypherpunks.ca/otr/"
-DOWNLOAD="http://www.cypherpunks.ca/otr/libotr-3.1.0.tar.gz"
-MD5SUM="6266a2966cc9e00822add3175b0b77cf"
+DOWNLOAD="http://www.cypherpunks.ca/otr/libotr-3.2.0.tar.gz"
+MD5SUM="faba02e60f64e492838929be2272f839"
MAINTAINER="Guillermo Bonvehi"
EMAIL="gbonvehi@gmail.com"
APPROVED="rworkman"