void-packages/srcpkgs/libtorrent1/template

29 lines
989 B
Bash

# Template build file for 'libtorrent1'
pkgname=libtorrent1
version=1.0.6
revision=1
wrksrc=libtorrent-rasterbar-${version}
build_style=gnu-configure
configure_args="--enable-static --disable-debug --without-kqueue
--enable-aligned --with-posix-fallocate
--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="pkg-config"
makedepends="boost-devel zlib-devel libressl-devel"
short_desc="BitTorrent library written in C++ (v1.x)"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
homepage="http://www.libtorrent.org/"
license="BSD"
distfiles="https://github.com/arvidn/${pkgname%1}/releases/download/${pkgname%1}-${version//./_}/${pkgname%1}-rasterbar-${version}.tar.gz"
checksum=c97de804b77f44591801631aca3869567671df2d3e2afe7f5453d8db2478fd61
libtorrent1-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}