aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-05-11 23:04:10 +0300
committerprspkt <prspkt@protonmail.com>2019-05-12 21:06:27 +0300
commitbb2b956ae9787706a773a25e5a2d13ff9edc0aa1 (patch)
tree7070fd227fad48091b8ffa9bfe7d6c12f9e83392
parentc9bce320ca16c3c907e49927f712c61ed6b08139 (diff)
downloadaports-bb2b956ae9787706a773a25e5a2d13ff9edc0aa1.tar.gz
aports-bb2b956ae9787706a773a25e5a2d13ff9edc0aa1.tar.bz2
aports-bb2b956ae9787706a773a25e5a2d13ff9edc0aa1.tar.xz
testing/libtorrent-rasterbar: upgrade to 1.1.13
- Split static library to own subpackage - Split python2 bindings to own subpackage
-rw-r--r--testing/libtorrent-rasterbar/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/testing/libtorrent-rasterbar/APKBUILD b/testing/libtorrent-rasterbar/APKBUILD
index 1bff61b6f5..e7fea0031c 100644
--- a/testing/libtorrent-rasterbar/APKBUILD
+++ b/testing/libtorrent-rasterbar/APKBUILD
@@ -1,40 +1,43 @@
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=libtorrent-rasterbar
-pkgver=1.1.12
-pkgrel=1
+pkgver=1.1.13
+pkgrel=0
pkgdesc="Feature complete C++ bittorrent implementation"
url="http://www.rasterbar.com/products/libtorrent"
arch="all"
license="BSD-3-Clause"
-depends=""
depends_dev="boost-dev openssl-dev python2-dev"
makedepends="$depends_dev linux-headers"
-subpackages="$pkgname-dev"
-source="https://github.com/arvidn/libtorrent/releases/download/libtorrent_${pkgver//./_}/$pkgname-$pkgver.tar.gz"
-
-builddir="$srcdir"/$pkgname-$pkgver
+subpackages="py2-$pkgname:_py2 $pkgname-static $pkgname-dev"
+source="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz"
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-tests \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
--enable-python-binding \
--with-boost-system=boost_system
make
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}
-sha512sums="6f264ca9fcdcb93c4e16ced4b2657ccb19d47cbd483c3ad9f14909ee7de280b50c15d180c05ebd454236871fceca48cd79647bf89f8cbebf234b8f0f351aa699 libtorrent-rasterbar-1.1.12.tar.gz"
+_py2() {
+ pkgdesc="Python bindings for $pkgname"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+
+sha512sums="021fc54353fdf5063d55ccdc2057dada292bb0008fb92e93e8d94dd89f529630f290fcdc4f4d095e3192522c57fe0f0da260b5ef8e8e15a8c6ac05728f5f7160 libtorrent-rasterbar-1.1.13.tar.gz"