trn: fix for musl.

This commit is contained in:
Christian Neukirchen 2015-05-17 16:08:57 +02:00
parent f9fbeb32d9
commit 305a692f9e

View file

@ -1,7 +1,7 @@
# Template file for 'trn' # Template file for 'trn'
pkgname=trn pkgname=trn
version=4.0test77 version=4.0test77
revision=3 revision=4
wrksrc=$pkgname-${version/test/-test} wrksrc=$pkgname-${version/test/-test}
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="groff bison" hostmakedepends="groff bison"
@ -14,12 +14,15 @@ homepage="http://trn.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}4/${wrksrc}.tar.gz" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}4/${wrksrc}.tar.gz"
checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff
post_extract() {
sed -i 's/pipe2/pipetwo/g' filter.c
sed -i '1i#include <time.h>' nntpclient.h
}
do_configure() { do_configure() {
cp ${FILESDIR}/Policy.sh . cp ${FILESDIR}/Policy.sh .
./Configure -OdErs ./Configure -OdErs
./Configure -desS ./Configure -desS
} }
do_install() { do_install() {
make ${makejobs} install CC="$CC" \ make ${makejobs} install CC="$CC" \
rnbin=${DESTDIR}/usr/bin \ rnbin=${DESTDIR}/usr/bin \