app=gpaint
version=0.3.2
build=1sml
homepage="https://www.gnu.org/software/gpaint/"
download="ftp://alpha.gnu.org/gnu/gpaint/gpaint-2-0.3.2.tar.gz"
desc="Simple and lightweight alternative to MS-paint written in GTK2"
requires="gtk2 "

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

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

  sed -i 's/GTK_RESPONSE_DISCARD/GTK_RESPONSE_NO/' src/drawing.c

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mv $pkg/bin/gpaint-2 $pkg/bin/gpaint
  
  mkfinalpkg
}

sha512sums="
6e8de4793e6e74676efbf190b117af0de1af8320c60ae160092c9d0fb7977215979abf607ffb172b2cb99eb50dece481d008bb42c0062d65023915290c26c397  gpaint-0.3.2.tar.lz
"
