43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Template file for 'libtorrent-rasterbar'
|
|
pkgname=libtorrent-rasterbar
|
|
version=1.1.6
|
|
revision=2
|
|
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 boost-python geoip-devel python-devel"
|
|
short_desc="C++ bittorrent library by Rasterbar Software"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
homepage="http://www.rasterbar.com/products/libtorrent/"
|
|
license="3-clause-BSD"
|
|
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
|
|
checksum=b7c74d004bd121bd6e9f8975ee1fec3c95c74044c6a6250f6b07f259f55121ef
|
|
|
|
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() {
|
|
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 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
|
|
}
|
|
}
|