app=gthumb
version=3.11.2
build=1sml
homepage="https://wiki.gnome.org/Apps/Gthumb"
download="https://download.gnome.org/sources/gthumb/3.11/gthumb-3.11.4.tar.xz"
desc="An image viewer and browser"
requires="exiv2 json-glib librsvg libsecret libsoup libwebp dconf gtk2 gsettings-desktop-schemas "

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

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

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

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs
  
  mkfinalpkg
}

sha512sums="
062b0be4e21ad1eeca19fbc17f1f505e3be697b50e682af62c786859e0bd9ed267955bad83b9e3fa377e935c25ea8c734812f57b4bd005cf96f7e9b143c39461  gthumb-3.11.2.tar.xz
"
