1 # $Id: PKGBUILD,v 1.6 2004/07/28 12:37:03 dorphell Exp $
2 # Maintainer: dorphell <dorphell@archlinux.org>
6 pkgdesc="British English dictionary for ispell"
8 url="http://ficus-www.cs.ucla.edu/geoff/ispell.html"
10 makedepends=('ncurses')
11 options=('!makeflags')
12 source=(http://fmg-www.cs.ucla.edu/geoff/tars/ispell-${pkgver}.tar.gz
14 ispell-getline-compile-fix.patch)
15 md5sums=('12087d7555fc2b746425cd167af480fe'
16 'bf51b6181b9914dedc266ba970bb7319'
17 '0ae49daef92920839308accca87df4a9')
20 cd "${srcdir}/ispell-${pkgver}"
21 patch -Np0 -i ../ispell-getline-compile-fix.patch || return 1
22 sed -i 's/#undef USG/#define USG/' local.h.linux
23 sed -i 's|/usr/local|/usr|' local.h.linux
24 sed -i 's|/lib|/lib/ispell|' local.h.linux
25 cp local.h.linux local.h
27 echo '#define LANGUAGES "{british,MASTERDICTS=british.med,HASHFILES=britishmed.hash,EXTRADICT=}"' >> local.h
28 echo '#define MASTERHASH "britishmed.hash"' >> local.h
29 make TMPDIR=/tmp all || return 1
31 mkdir -p "${pkgdir}/usr/lib/ispell"
32 cp languages/british/britishmed.hash "${pkgdir}/usr/lib/ispell"
33 cd "${pkgdir}/usr/lib/ispell"
34 ln -s britishmed.hash british.hash
36 install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"