# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gegl
version=0.4.44
build=1sml
homepage="https://www.gegl.org/"
download="https://download.gimp.org/pub/gegl/0.2/gegl-0.2.2.tar.bz2"
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
}

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

  ninja
  DESTDIR="$pkg" ninja install
  
  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
2cdfd804abe9022959381cc46fb9f4c1e2f3f0ac8506547adde88a44988950a7ef543c68e79349cd88d6f9edd477fe0e0faa03cfb3dec224a9100eadc6fed71e  gegl-0.4.44.tar.lz
"
