void-packages/srcpkgs/libtorrent-rasterbar/template

52 lines
1.5 KiB
Bash

# Template file for 'libtorrent-rasterbar'
pkgname=libtorrent-rasterbar
version=1.1.13
revision=3
build_style=gnu-configure
configure_args="--enable-examples --enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr --with-boost-python=boost_python36"
hostmakedepends="automake pkg-config intltool libtool python3-devel"
makedepends="libressl-devel boost-devel geoip-devel python3-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=30040719858e3c06634764e0c1778738eb42ecd0b45e814afa746329a948ead7
pre_configure() {
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
export PYTHON_EXTRA_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython3.6m"
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
libtorrent-rasterbar-python3_package() {
lib32disabled=yes
short_desc+=" - Python3 bindings"
pkg_install() {
vmove usr/lib/python3*
}
}
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"
}
}
libtorrent-rasterbar-examples_package() {
short_desc+=" - example binaries"
pkg_install() {
vmove usr/bin
}
}