void-packages/srcpkgs/libtorrent/template

34 lines
1001 B
Bash

# Template build file for 'libtorrent'
pkgname=libtorrent
version=0.13.4
revision=4
build_style=gnu-configure
configure_args="--enable-static --disable-debug --without-kqueue
--enable-aligned --with-posix-fallocate"
hostmakedepends="automake libtool pkg-config"
makedepends="zlib-devel libressl-devel"
short_desc="BitTorrent library written in C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://libtorrent.rakshasa.no"
license="GPL-2"
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
checksum=704e097119dc89e2ee4630396b25de1cd64b0549841347ea75b9ef9217084955
pre_configure() {
# Drop cppunit requirement
sed '/AM_PATH_CPPUNIT.*/d' -i configure.ac
autoreconf -fi
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
}
libtorrent-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"
}
}