updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / tin / PKGBUILD
blob07ddcbcb5a6631247d2fce3616dbf792fcd3c49d
1 # Contributor: dorphell <dorphell@archlinux.org>
2 # Contributor: akojo
4 pkgname=tin
5 pkgver=2.0.1
6 pkgrel=2
7 pkgdesc="Curses based threaded NNTP and spool based UseNet newsreader"
8 arch=('i686' 'x86_64')
9 url="http://www.tin.org"
10 license=('BSD')
11 depends=('dante' 'ncurses' 'libidn' 'gnupg' 'icu' 'ispell' 'perl')
12 source=("ftp://ftp.tin.org/pub/news/clients/tin/stable/$pkgname-$pkgver.tar.bz2"
13         'LICENSE')
14 md5sums=('e61837b8559e7cdbc35bc11f15c3b7ce'
15          '22de35b1bdc6f0df87c93ae794198b21')
17 build() {
18   cd $srcdir/$pkgname-$pkgver
19   ./configure --prefix=/usr --mandir=/usr/share/man --with-screen=ncurses --with-pcre=/usr \
20         --disable-prototypes --disable-echo --enable-ipv6 --with-gpg=/usr/bin/gpg \
21         --with-coffee --enable-nls --with-ispell=/usr/bin/ispell --with-socks --with-socks5
22   make build || return 1
23   make || return 1
26 package() {
27   cd $srcdir/$pkgname-$pkgver
28   make DESTDIR=$pkgdir install
29   rm -f $pkgdir/usr/share/man/man5/mbox.5
30   rm -f $pkgdir/usr/share/man/man5/mmdf.5
31   mv $pkgdir/usr/bin/url_handler.pl $pkgdir/usr/bin/tin_url_handler.pl
32   install -D -m644 $srcdir/LICENSE \
33     $pkgdir/usr/share/licenses/$pkgname/LICENSE