# Maintainer: Natanael Copa pkgname=hunspell pkgver=1.3.4 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" 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 \ --disable-static \ --without-included-gettext \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 } md5sums="423cff69e68c87ac11e4aa8462951954 hunspell-1.3.4.tar.gz" sha256sums="55918522cb0041748507dd4f5aa92d043cef337aa589b9367c2221da084281ac hunspell-1.3.4.tar.gz" sha512sums="092818570f5eb152b2bf8d0964068510185304f41e1eb0946bf7589c640d21bff67d2b79b49f770e8c0baa9031ab449eefb9e3b0bce8a28e2fc4809007fefa99 hunspell-1.3.4.tar.gz"