core/libmythes/PKGBUILD

33 lines
1009 B
Bash
Raw Normal View History

2013-06-04 16:56:12 +08:00
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
2011-04-25 00:31:40 +08:00
pkgname=libmythes
2013-06-04 16:56:12 +08:00
pkgver=1.2.3
2011-04-25 00:31:40 +08:00
pkgrel=1
pkgdesc="a simple thesaurus"
2013-06-04 16:56:12 +08:00
arch=('x86_64')
2011-04-25 00:31:40 +08:00
url="http://hunspell.sourceforge.net/ "
license=('custom')
2013-06-04 16:56:12 +08:00
depends=('glibc' 'perl' 'hunspell')
options=('!libtool')
2011-04-25 00:31:40 +08:00
provides=('mythes')
source=(http://downloads.sourceforge.net/hunspell/${pkgname/lib/}-${pkgver}.tar.gz)
2013-06-04 16:56:12 +08:00
md5sums=('46e92b68e31e858512b680b3b61dc4c1')
2011-04-25 00:31:40 +08:00
build() {
cd ${srcdir}/${pkgname/lib/}-$pkgver
./configure --prefix=/usr --disable-static
make
# run the example program:
./example th_en_US_new.idx th_en_US_new.dat checkme.lst
# run the example program with stemming and morphological generation:
# e.g. to check mouse, mice, rodents, eats, eaten, ate, eating etc. words
./example morph.idx morph.dat morph.lst morph.aff morph.dic
}
package() {
cd ${srcdir}/${pkgname/lib/}-$pkgver
make DESTDIR=$pkgdir install
# license
install -Dm644 ${srcdir}/${pkgname/lib/}-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}