void-packages/srcpkgs/rtorrent/template
2015-09-04 08:51:22 +02:00

31 lines
1.1 KiB
Bash

# Template file for 'rtorrent'
pkgname=rtorrent
version=0.9.6
revision=1
build_style=gnu-configure
configure_args="--with-xmlrpc-c"
hostmakedepends="automake libtool pkg-config"
makedepends="libcurl-devel libsigc++-devel libtorrent-devel ncurses-devel xmlrpc-c-devel"
short_desc="Ncurses BitTorrent client based on libTorrent"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/rakshasa/rtorrent"
license="GPL-2"
distfiles="https://github.com/rakshasa/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=8ca89ca9e8f0cf984198d030203087e93d24743dfa158091a5d225a70ca4c8cf
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
}
post_configure() {
local f
for f in $(find ${wrksrc} -name Makefile); do
sed -e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" -i $f
sed -e "s;-I/usr/include;-L${XBPS_CROSS_BASE}/usr/include;g" -i $f
done
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -e "s;-lm;-lm -lc;" Makefile
esac
}