# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libportal
version=0.5
build=1sml
homepage="https://github.com/flatpak/libportal/"
download="https://github.com/flatpak/libportal/archive/refs/tags/$version.tar.gz"
desc="Flatpak portal API"
requires="gtk3"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

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

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

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}


sha512sums="
ca6879e2d4b55d9868c2ccc87d572a9b82e222b2b677d7baa642e61a66a34953700adc1946ea670dda59ceda905f38c8a1879f134431cbf54c3966008a5430b5  libportal-0.5.tar.lz
"
