updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / latin-words / PKGBUILD
blob13cad70bf44659a1d80429f881b5e001f7595908
1 # Contributor: Orivej Desh <smpuj@bk.ru>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
3 pkgname=latin-words
4 pkgver=1.97FC
5 pkgrel=3
6 pkgdesc="Latin-english-latin intelligent dictionary and latin text analyser"
7 arch=("i686" "x86_64")
8 url="http://users.erols.com/whitaker/words.htm"
9 license=('custom')
10 makedepends=('gcc-ada' 'unzip')
11 provides=("wordslatin")
12 conflicts=("wordslatin")
13 source=("http://users.erols.com/whitaker/wordsall.zip" "words.sh" "license.txt")
14 md5sums=('e70ae2112bb7c7c491c3ec7a57af779c' 'a8a9a0b6dd56aacaeefaa7e1bd8077c8'\
15          '43cc5e098f51e02401d2a140cb8a6796')
17 build() {
18         cd $srcdir
19         unzip -quo wordsall || return 1
20         gnatmake -O3 words || return 1
21         gnatmake makedict && echo "g" | ./makedict || return 1
22         gnatmake makestem && echo "g" | ./makestem || return 1
23         gnatmake makeefil && ./makeefil || return 1
24         gnatmake makeinfl && ./makeinfl || return 1
26 package() {
27         cd $srcdir
28         install -D words $pkgdir/usr/share/words-$pkgver/words || return 1
29         install -m644 ADDONS.LAT DICTFILE.GEN EWDSFILE.GEN INDXFILE.GEN \
30           INFLECTS.SEC STEMFILE.GEN UNIQUES.LAT \
31           $pkgdir/usr/share/words-$pkgver/ || return 1
32         install -Dm644 wordsdoc.htm \
33           $pkgdir/usr/share/doc/words-$pkgver/wordsdoc.htm || return 1
34         install -D words.sh $pkgdir/usr/bin/words || return 1
35         sed -s "s/PKGNAME/words/" -i $pkgdir/usr/bin/words || return 1
36         sed -s "s/PKGVER/$pkgver/" -i $pkgdir/usr/bin/words || return 1
37         install -Dm644 license.txt \
38           $pkgdir/usr/share/licenses/latin-words/LICENSE || return 1