42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template build file for 'libtorrent'
|
|
pkgname=libtorrent
|
|
version=0.13.5
|
|
revision=3
|
|
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="https://github.com/rakshasa/${pkgname}"
|
|
license="GPL-2"
|
|
distfiles="https://github.com/rakshasa/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=625a13397828c2b84e17f51200ebee8b4f754c112dbb9c0f31292507fd7c026e
|
|
|
|
pre_configure() {
|
|
# Fix wrong version in configure.ac
|
|
sed 's,0.13.4,0.13.5,' -i configure.ac
|
|
# Drop cppunit requirement
|
|
sed '/AM_PATH_CPPUNIT.*/d' -i configure.ac
|
|
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"
|
|
}
|
|
}
|