void-packages/srcpkgs/trn/template
Jürgen Buchmüller a397924ca0 trn: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:41 +02:00

37 lines
1,008 B
Bash

# Template file for 'trn'
pkgname=trn
version=4.0test77
revision=6
wrksrc=$pkgname-${version/test/-test}
build_style=gnu-makefile
hostmakedepends="groff bison"
makedepends="ncurses-devel gettext-devel"
depends="virtual?smtp-server"
short_desc="Text-based threaded Usenet newsreader"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="custom"
homepage="http://trn.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}4/${wrksrc}.tar.gz"
checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff
nocross="sh: ./try: cannot execute binary file: Exec format error"
CFLAGS="-fcommon"
post_extract() {
sed -i 's/pipe2/pipetwo/g' filter.c
sed -i '1i#include <time.h>' nntpclient.h
}
do_configure() {
cp ${FILESDIR}/Policy.sh .
./Configure -OdErs
./Configure -desS
}
do_install() {
make ${makejobs} install CC="$CC" \
rnbin=${DESTDIR}/usr/bin \
rnlib=${DESTDIR}/usr/lib/trn \
inewsbin=${DESTDIR}/usr/bin \
mansrc=${DESTDIR}/usr/share/man/man1
vlicense LICENSE
}