libtorrent-rasterbar: split python bindings into -python; fixes cross compilation.

This commit is contained in:
Juan RP 2016-07-23 19:01:21 +02:00
parent b20ec8d03d
commit 3ec7edb4d0
2 changed files with 20 additions and 5 deletions

View file

@ -0,0 +1 @@
libtorrent-rasterbar

View file

@ -1,23 +1,37 @@
# Template file for 'libtorrent-rasterbar'
pkgname=libtorrent-rasterbar
version=1.0.9
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-python-binding --with-libgeoip"
hostmakedepends="pkg-config intltool python-devel"
makedepends="libressl-devel boost-devel boost-python python-devel geoip-devel"
configure_args="--with-libgeoip --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="pkg-config intltool"
makedepends="libressl-devel boost-devel geoip-devel"
short_desc="C++ bittorrent library by Rasterbar Software"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
homepage="http://www.rasterbar.com/products/libtorrent/"
license="BSD"
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
checksum=11a93125ed49f796fca83da925ab7dc29e91d88b915f078caaddaaf559d63db6
nocross="http://build.voidlinux.eu/builders/armv6l_builder/builds/16858/steps/shell_3/logs/stdio"
subpackages="libtorrent-rasterbar-devel"
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --enable-python-binding"
makedepends+=" boost-python python-devel"
subpackages+=" libtorrent-rasterbar-python"
fi
post_install() {
vlicense LICENSE
}
libtorrent-rasterbar-python_package() {
replaces="${sourcepkg}<1.0.9_2"
short_desc+=" - python bindings"
pkg_install() {
vmove usr/lib/python*
}
}
libtorrent-rasterbar-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libressl-devel>=2.1.4 boost-devel geoip-devel"
short_desc+=" - development files"