APP=gtkspell
VERSION=2.0.16
BUILD=1sml
HOMEPAGE="http://gtkspell.sourceforge.net/"
DOWNLOAD="http://gtkspell.sourceforge.net/download/gtkspell-2.0.16.tar.gz"
DESC="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
REQUIRES="intltool enchant gtk2 "

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

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

  patch -p1 < $SRCDIR/enchant-2.diff

  CPPFLAGS="$CFLAGS -D_GNU_SOURCE" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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