description="Spell checker and morphological analyzer library and program"
url="http://hunspell.sourceforge.net/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

PKGMK_KEEP_SOURCES="no"

name=hunspell
version=1.7.0

source=(https://github.com/hunspell/hunspell/archive/v$version.tar.gz )

build() {
	cd $name-$version
	autoreconf -vfi
        ./configure --prefix=/usr \
		    --disable-static \
        	    --with-ui \
		    --with-readline
		    
        make
        make DESTDIR=$PKG install
# add generic hunspell.so for development and projects not using pkgconfig flags
pushd $PKG/usr/lib
  ln -s libhunspell-?.?.so libhunspell.so
popd

# Obsolet lib
  rm $PKG/usr/lib/libhunspell-1.?.la
}
