contrib/libportal/Pkgfile

29 lines
921 B
Plaintext
Raw Normal View History

2021-09-19 19:52:44 +02:00
# Description: libportal provides GIO-style async APIs for most Flatpak portals.
# URL: https://github.com/flatpak/libportal
# Maintainer: Tim Biermann, tbier at posteo dot de
2023-09-07 17:06:08 +02:00
# Depends on: gtk3
# Optional: gobject-introspection gtk4 qt5 vala
2021-09-19 19:52:44 +02:00
name=libportal
2023-09-09 21:35:17 +02:00
version=0.7.1
2021-09-19 19:52:44 +02:00
release=1
source=(https://github.com/flatpak/libportal/releases/download/$version/$name-$version.tar.xz)
build() {
2022-01-03 11:38:23 +01:00
prt-get isinst gobject-introspection || PKGMK_LIBPORTAL+=' -D introspection=false'
2023-09-07 17:22:07 +02:00
prt-get isinst gtk4 && PKGMK_LIBPORTAL+=' -D backend-gtk4=enabled'
prt-get isinst qt5 && PKGMK_LIBPORTAL+=' -D backend-qt5=enabled'
2022-01-03 11:38:23 +01:00
prt-get isinst vala || PKGMK_LIBPORTAL+=' -D vapi=false'
meson setup $name-$version build $PKGMK_LIBPORTAL \
2021-09-19 19:52:44 +02:00
--prefix=/usr \
--buildtype=plain \
2022-01-03 11:38:23 +01:00
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
2023-09-07 17:06:08 +02:00
-D docs=false
2021-09-19 19:52:44 +02:00
meson compile -C build
DESTDIR=$PKG meson install -C build
}