mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 21:57:14 +08:00
32 lines
988 B
Bash
32 lines
988 B
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=libmythes
|
|
pkgver=1.2.4
|
|
pkgrel=2
|
|
pkgdesc="a simple thesaurus"
|
|
arch=('x86_64')
|
|
url="http://hunspell.sourceforge.net/ "
|
|
license=('custom')
|
|
depends=('glibc' 'perl' 'hunspell')
|
|
provides=('mythes')
|
|
source=(http://downloads.sourceforge.net/hunspell/${pkgname/lib/}-${pkgver}.tar.gz)
|
|
md5sums=('a8c2c5b8f09e7ede322d5c602ff6a4b6')
|
|
|
|
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
|
|
}
|