# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gtkspell
version=2.0.16
build=1sml
homepage="https://gtkspell.sourceforge.net/"
download="https://gtkspell.sourceforge.net/download/gtkspell-$version.tar.gz"
desc="Provides word-processor-style misspelling highlighting and replacement library for Gtk apps"
requires="intltool enchant gtk2"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  applypatch $srcdir/enchant-2.diff
}

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e61d3760a78886ebdb78bddd71feacaa7841a982ee923ec47bae21ec3cb00fd5fbde6b4b09f14550bf731aaa7130bcae9ad66f8b407f618f601ae68a1e4cb995  gtkspell-2.0.16.tar.lz
4ba4427ee59f1c439ed33b53b4022295165b9a4a1a0bdd212ed459cea23b1f04d1bdb988e2316ea4a1d1bd75e492408232908524dacad3b5ee2ffe7a55677d77  enchant-2.diff
"
