# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gegl
version=0.4.40
build=2sml
homepage="https://www.gegl.org/"
download="https://slackware.uk/slackware/slackware64-current/source/l/gegl/gegl-$version.tar.xz"
desc="Graph based image processing framework"
requires="json-glib gobject-introspection babl lcms2"

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

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

  applypatch $srcdir/libraw-0.21.patch
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Ddocs=false \
    -Dvapigen=disabled \
    -Dintrospection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
8e61dae55928fce8c3b5af078329fdffa7b506e7badcbf2e49eb3e37348241cb0491a0dc1b08f006506040080590065c5387a68c04be3cb79d15983e5229fd77  gegl-0.4.40.tar.lz
"
