core/hunspell/PKGBUILD

40 lines
957 B
Bash
Raw Normal View History

2010-03-14 23:48:48 +08:00
pkgname=hunspell
2017-01-05 08:14:43 +08:00
pkgver=1.6.0
2012-04-28 02:53:01 +08:00
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="Spell checker and morphological analyzer library and program"
2017-01-05 08:14:43 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://hunspell.sourceforge.net/"
license=('GPL' 'LGPL' 'MPL')
depends=('gcc-libs' 'readline')
2010-05-17 15:50:50 +08:00
optdepends=('perl: for ispellaff2myspell')
2017-01-05 08:14:43 +08:00
source=($pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v${pkgver}.tar.gz)
sha256sums=('512e7d2ee69dad0b35ca011076405e56e0f10963a02d4859dbcc4faf53ca68e2')
prepare() {
cd hunspell-$pkgver
autoreconf -vfi
}
2010-03-14 23:48:48 +08:00
build() {
2017-01-05 08:14:43 +08:00
cd hunspell-$pkgver
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr --disable-static \
2017-01-05 08:14:43 +08:00
--with-ui --with-readline # --with-experimental breaks build in this release
2012-04-28 02:53:01 +08:00
make
2010-05-17 15:50:50 +08:00
}
2017-01-05 08:14:43 +08:00
check() {
cd hunspell-$pkgver
make check
}
2010-05-17 15:50:50 +08:00
package() {
2017-01-05 08:14:43 +08:00
cd hunspell-$pkgver
2012-04-28 02:53:01 +08:00
make DESTDIR="$pkgdir" install
2017-01-05 08:14:43 +08:00
# add generic hunspell.so for development and projects not using pkgconfig flags - FS#30592
pushd $pkgdir/usr/lib
ln -s libhunspell-?.?.so libhunspell.so
popd
2010-03-14 23:48:48 +08:00
}