# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gdk-pixbuf
version=2.42.10
build=1sml
homepage="https://wiki.gnome.org/Projects/GdkPixbuf"
download="https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/$version/gdk-pixbuf-$version.tar.bz2"
desc="An image loading library for GTK"
requires="glib libx11 shared-mime-info gobject-introspection"

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=/ \
    -Dman=false \
    -Dinstalled_tests=false \
    --wrap-mode=nofallback

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
648a056a54a7a3aea0929ad70f9489dac059e9777f6679488f68e80bda65bdc19c276c3fc7870f9008a583b33690b5dc155d07ec22b2946c9f0cb08cd3db3672  gdk-pixbuf-2.42.10.tar.lz
"
