libraries/libtorrent-rasterbar: Updated for version 0.15.0.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Erik Hanson 2010-06-12 04:11:27 -05:00 committed by Robby Workman
parent 8865baedef
commit 279e77c532
2 changed files with 17 additions and 24 deletions

View File

@ -23,25 +23,23 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libtorrent-rasterbar
VERSION=0.14.8
VERSION=0.15.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
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@ -51,6 +49,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -eu
@ -76,24 +77,16 @@ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
--enable-python-binding \
--with-zlib=system \
--with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
--with-boost-system=boost_system \
--with-boost-filesystem=boost_filesystem \
--with-boost-thread=boost_thread \
--with-boost-regex=boost_regex \
--with-boost-program-options=boost_program_options \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
# Install missing asio includes; thanks to Heinz Wiesinger.
cp -a include/libtorrent/asio $PKG/usr/include/libtorrent/
# Remove empty directory; thanks to Larry Hajali.
rmdir $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README docs/ \
cp -a AUTHORS COPYING ChangeLog NEWS README docs/ \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,10 +1,10 @@
PRGNAM="libtorrent-rasterbar"
VERSION="0.14.8"
VERSION="0.15.0"
HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
DOWNLOAD="http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.14.8.tar.gz"
MD5SUM="3fae9934b74e2ddf2c50c1f0ec320d75"
DOWNLOAD="http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.15.0.tar.gz"
MD5SUM="3f8253457557a3f4778fa18fa076c5c9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="dsomero"
APPROVED="rworkman"