void-packages/srcpkgs/libtorrent/template
2018-06-14 16:30:10 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'libtorrent'
pkgname=libtorrent
version=0.13.7
revision=1
build_style=gnu-configure
configure_args="--enable-static --disable-debug --without-kqueue
--enable-aligned --with-posix-fallocate"
hostmakedepends="automake libtool pkg-config"
makedepends="cppunit-devel libressl-devel zlib-devel"
short_desc="BitTorrent library written in C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://github.com/rakshasa/${pkgname}"
distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
checksum=86b4b1753385aaddf9e59ad94f1292eee5102139eb57520e84d1af2f04693708
pre_configure() {
autoreconf -fi
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
}
post_configure() {
# Replace wrong (for cross buidls) -L/lib in Makefiles
for f in $(find ${wrksrc} -name Makefile); do
sed -i $f -e "s;-L/lib;-L${XBPS_CROSS_BASE}/lib;g"
done
}
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"
}
}