void-packages/srcpkgs/libtorrent/template

38 lines
1.1 KiB
Bash

# Template file for 'libtorrent'
pkgname=libtorrent
version=0.13.8
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="libcppunit-devel libressl-devel zlib-devel"
short_desc="BitTorrent library written in C++"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/rakshasa/${pkgname}"
distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
checksum=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
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"
}
}