app=libportal
version=0.5
build=1sml
homepage="https://github.com/flatpak/libportal/"
download="https://github.com/flatpak/libportal/archive/refs/tags/0.5.tar.gz"
desc="Flatpak portal API"
requires="gtk3"
   
build() {
  mkandenterbuilddir
  rm -rf $app-$version

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

  mkdir smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dbackends="gtk3" \
    -Ddocs="false" 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}


sha512sums="
405cb8d75ba364145be57d52f460b364d62e742234bfd26a81816e9e0d6586ade13f5c01afec65a20c92408a3449832ad20e47ecea26a6375f55c878b2315f00  libportal-0.5.tar.gz
"
