# Description: A wrapper library for generic spell checking.
# URL: https://abiword.github.io/enchant/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: aspell glib hunspell

name=enchant
version=2.5.0
release=1
source=(https://github.com/AbiWord/$name/releases/download/v$version/$name-$version.tar.gz)

build() {
  cd $name-$version

  ./configure --prefix=/usr

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install
}
