diff options
author | AmatCoder <amatcoder@gmail.com> | 2014-12-11 09:37:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-16 14:07:45 +0000 |
commit | 85e5c8460266df5e059998a718d7ee0f8bfcc1dd (patch) | |
tree | 849681165b5d9fa53fec2f7457bc5e016bfd2f3c /testing/libtorrent-rasterbar | |
parent | c25534515ab0d54ac0e4ffbacef9b6b04cec3701 (diff) | |
download | aports-85e5c8460266df5e059998a718d7ee0f8bfcc1dd.tar.bz2 aports-85e5c8460266df5e059998a718d7ee0f8bfcc1dd.tar.xz |
testing/libtorrent-rasterbar: new aport
Diffstat (limited to 'testing/libtorrent-rasterbar')
-rw-r--r-- | testing/libtorrent-rasterbar/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/libtorrent-rasterbar/APKBUILD b/testing/libtorrent-rasterbar/APKBUILD new file mode 100644 index 0000000000..43e5768840 --- /dev/null +++ b/testing/libtorrent-rasterbar/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: August Klein <amatcoder@gmail.com> +# Maintainer: August Klein <amatcoder@gmail.com> +pkgname=libtorrent-rasterbar +pkgver=0.16.19 +pkgrel=0 +pkgdesc="A feature complete C++ bittorrent implementation" +url="http://www.rasterbar.com/products/libtorrent" +arch="all" +license="BSD" +depends="" +depends_dev="boost-dev geoip-dev openssl-dev python-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/sourceforge/libtorrent/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-python-binding \ + --with-libgeoip=system \ + --with-boost-system=boost_system || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="38ed42c14dbbc4fb299828b2cb7ec1fd libtorrent-rasterbar-0.16.19.tar.gz" +sha256sums="9ebd3fa8accfa27d0c81cdbbe15d7b411ea1deec34ac6325dec7197f05d82982 libtorrent-rasterbar-0.16.19.tar.gz" +sha512sums="8e605802cb1ae80228d253adba44da6f5af39e7d65c59f65e15444ed1122500529ee068f6d3608b1c2a249f18b4de695073f7b67772fa445618757697d779340 libtorrent-rasterbar-0.16.19.tar.gz" |