APP=gspell
VERSION=1.8.3
BUILD=1sml
HOMEPAGE="https://wiki.gnome.org/Projects/gspell"
DOWNLOAD="https://gitlab.gnome.org/GNOME/gspell/-/archive/1.8.3/gspell-1.8.3.tar.bz2"
DESC="a flexible API to implement the spell checking in a GTK+ application"
REQUIRES="iso-codes enchant libxml2 gobject-introspection gtk3"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

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

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
25f77e2df55e5b93a4648a784e8d749ca8e806c3c5bc902d5522f14b644406ccbdfc451ec1b52b1271c7274ae824eac4c644df07711eeed7e9572cc6399b0f95  gspell-1.8.3.tar.lz
"
