summaryrefslogtreecommitdiff
path: root/libportal/Pkgfile
blob: b6a952242fb48aee9e985685cf67b0716a1a3bfd (plain)
    1 # Description: libportal provides GIO-style async APIs for most Flatpak portals.
    2 # URL: https://github.com/flatpak/libportal
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: glib gtk3
    5 # Optional: gtk4 qt5 gobject-introspection vala
    6 
    7 name=libportal
    8 version=0.6
    9 release=1
   10 source=(https://github.com/flatpak/libportal/releases/download/$version/$name-$version.tar.xz)
   11 
   12 build() {
   13   prt-get isinst gtk4 && LIBPORTAL_BACKENDS+=',gtk4'
   14   prt-get isinst qt5 && LIBPORTAL_BACKENDS+=',qt5'
   15   prt-get isinst gobject-introspection || PKGMK_LIBPORTAL+=' -D introspection=false'
   16   prt-get isinst vala || PKGMK_LIBPORTAL+=' -D vapi=false'
   17 
   18   meson setup $name-$version build $PKGMK_LIBPORTAL \
   19     --prefix=/usr \
   20     --buildtype=plain \
   21     --wrap-mode nodownload \
   22     -D b_lto=true \
   23     -D b_pie=true \
   24     -D docs=false \
   25     -D backends=gtk3$LIBPORTAL_BACKENDS
   26   meson compile -C build
   27   DESTDIR=$PKG meson install -C build
   28 }

Generated by cgit