# Maintainer: Natanael Copa pkgname=hunspell pkgver=1.4.1 pkgrel=0 pkgdesc="Spell checker and morphological analyzer library and program" url="http://hunspell.github.io/" arch="all" license="GPL2+ LGPL2+ MPL 1.1" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" depends="" makedepends="gettext-dev ncurses-dev readline-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v$pkgver.tar.gz " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-ui \ --with-readline \ --disable-static \ --without-included-gettext \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 } md5sums="33d370f7fe5a030985e445a5672b2067 hunspell-1.4.1.tar.gz" sha256sums="c4476aff0ced52eec334eae1e8d3fdaaebdd90f5ecd0b57cf2a92a6fd220d1bb hunspell-1.4.1.tar.gz" sha512sums="6edc1120a08d46f1c3a590f9964486240eee46ef7f1c2d072c228d26dd1cb3bee1f283d007fcda994cdf0482c065cd5375c9706570a7c5be9aff423e19c03b6b hunspell-1.4.1.tar.gz"