app=gdk-pixbuf
version=2.40.0
build=1sml
homepage="https://wiki.gnome.org/Projects/GdkPixbuf"
download="https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/2.40.0/gdk-pixbuf-2.40.0.tar.bz2"
desc="An image loading library for GTK"
requires="glib libx11 shared-mime-info gobject-introspection"

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

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

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dman=false 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e5717f2d22ffe32e3f282552d183d6a3f2a49bc0fe305a8fe9cb359ef0ccfe7b0a1c2c1d892305dca1aa2d3f2e30220eecac3ba556565ca612e083ed098cb216  gdk-pixbuf-2.40.0.tar.lz
"
