# Maintainer: PktSurf <smlinux@pktsurf.in>
app=babl
version=0.1.106
build=1sml
homepage="https://gegl.org/babl/"
download="https://download.gimp.org/pub/babl/0.1/babl-$version.tar.xz"
desc="Dynamic, any to any, pixel format conversion library"
requires="lcms2 vala gobject-introspection"

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

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

build() {
  # Fix when building with meson 0.63.2
  #sed -i 's@Description@description@' meson.build

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix=/ \
    -Denable-vapi=false \
    -Dwith-docs=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
2a32332bc19f920481518fde381247cdc83c7535dd8322292d89332f1e8d496bfe7858edfdd33e9b55e1730e2d8367fa56f243254a6c8732b8e79892523e3e02  babl-0.1.106.tar.lz
"