updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / trn / PKGBUILD
blob0bdaca324a86d89889325f269d57ac7554f08987
1 # Maintainer: Beej Jorgensen <beej@beej.us>
2 # Contributor: Beej Jorgensen <beej@beej.us>
4 pkgname=trn
5 pkgver=4.0test77
6 pkgrel=1
7 pkgdesc="Text-based threaded Usenet newsreader"
8 arch=('i686' 'x86_64')
9 url="http://trn.sourceforge.net/"
10 license=('custom')
11 depends=('heimdal' 'ncurses')
12 makedepends=('patch' 'expect' 'bison')
13 optdepends=('aspell: spellcheck support'
14   'sendmail: (or any outgoing mailer) outgoing email support')
15 source=('http://downloads.sourceforge.net/trn/trn-4.0-test77.tar.gz' 
16         'trn-4.0-test77-aur.patch' 'configbot')
17 md5sums=('e0680ae4e6062747f88ba982326ac4c0'
18          'ff8cb720292c477cc89a482f57c5b43d'
19          '71212d74def969dc4ef398258d72425f')
21 build() {
22   cd "$srcdir/trn-4.0-test77"
24   # fixes in include order to allow builds, and a fix to allow aspell
25   # to be used as the speller:
26   patch -Np1 < ${srcdir}/trn-4.0-test77-aur.patch
28   # the Configure script is very very interactive, so we
29   # let expect handle it.  This expect script runs the
30   # Configure script:
31   expect -f $srcdir/configbot || return 1
33   # build it!
34   make || return 1
36   # install, forcing the paths to what was set in Configure:
37   make \
38     rnbin=${pkgdir}/usr/bin \
39     rnlib=${pkgdir}/usr/lib/trn \
40     inewsbin=${pkgdir}/usr/bin \
41     mansrc=${pkgdir}/usr/share/man/man1 \
42     install || return 1
44   # custom license install
45   install -m644 -D LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
48 # vim:set ts=2 sw=2 et: