void-packages/srcpkgs/tin/template

27 lines
860 B
Bash
Raw Normal View History

2015-06-25 12:42:34 +02:00
# Template file for 'tin'
pkgname=tin
2015-07-17 09:06:22 +02:00
version=2.3.1
revision=1
2015-06-25 12:42:34 +02:00
build_style=gnu-configure
configure_args="--enable-ipv6 --with-pcre=${XBPS_CROSS_BASE}/usr"
hostmakedepends="flex pcre-devel"
makedepends="ncurses-devel readline-devel pcre-devel libidn-devel"
2015-06-25 12:42:34 +02:00
short_desc="NNTP and spool based UseNet newsreader"
maintainer="allan <mail@may.mooo.com>"
license="BSD"
homepage="http://www.tin.org"
distfiles="ftp://ftp.tin.org/pub/news/clients/tin/v${version%.*}/tin-${version}.tar.xz"
2015-07-17 09:06:22 +02:00
checksum=7d9069fe567f4309ac26dff5334a3c4365c4d2097929a2d47846628e4d8644c6
2015-06-25 12:42:34 +02:00
pre_configure() {
sed -i '/BUILD_CPPFLAGS.*=/s/$(PCRE_CPPFLAGS)//' src/Makefile.in
}
2015-06-25 12:42:34 +02:00
post_install() {
# conflicts with mutt
rm -f ${DESTDIR}/usr/share/man/man5/{mmdf.5,mbox.5}
# missing license file
vmkdir usr/share/licenses/tin
sed -n 9,34p src/misc.c > ${DESTDIR}/usr/share/licenses/tin/LICENSE
}