void-packages/srcpkgs/libtorrent-rasterbar/template

45 lines
1.4 KiB
Bash

# Template file for 'libtorrent-rasterbar'
pkgname=libtorrent-rasterbar
version=1.1.12
revision=1
build_style=gnu-configure
configure_args="--enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr"
hostmakedepends="automake pkg-config intltool libtool python-devel"
makedepends="libressl-devel boost-devel geoip-devel python-devel"
short_desc="C++ bittorrent library by Rasterbar Software"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD-3-Clause"
homepage="https://libtorrent.org/"
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent_${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
checksum=a5937134edf3ca8c109403a47f5a5fc93f7b8dca4e97f1a629a8c84288bee7a7
pre_configure() {
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
libtorrent-rasterbar-python_package() {
lib32disabled=yes
short_desc+=" - Python2 bindings"
pkg_install() {
vmove usr/lib/python2*
}
}
libtorrent-rasterbar-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libressl-devel boost-devel geoip-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}