-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
36 lines (34 loc) · 1.06 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Template file for 'trn'
pkgname=trn
version=4.0test77
revision=7
build_style=gnu-makefile
hostmakedepends="groff bison"
makedepends="ncurses-devel gettext-devel libnsl-devel"
depends="virtual?smtp-server"
short_desc="Text-based threaded Usenet newsreader"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="custom:freeware"
homepage="http://trn.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/trn/trn${version%%.*}/trn-${version/test/-test}.tar.gz"
checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff
nocross="sh: ./try: cannot execute binary file: Exec format error"
CFLAGS="-Wno-implicit-int -fcommon"
post_extract() {
sed -i 's/pipe2/pipetwo/g' filter.c
sed -i '1i#include <time.h>' nntpclient.h
sed -i '/#include <stdio.h>/i #include <stdlib.h>' Configure
}
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
}