contrib/xdg-desktop-portal/Pkgfile

28 lines
733 B
Plaintext

# Description: Desktop integration portals for sandboxed apps
# URL: https://github.com/flatpak/xdg-desktop-portal
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: flatpak fuse3
# Optional: geoclue libportal pipewire
name=xdg-desktop-portal
version=1.15.0
release=1
source=(https://github.com/flatpak/xdg-desktop-portal/archive/$version/$name-$version.tar.gz)
build() {
meson setup $name-$version build \
--prefix=/usr \
--libexecdir=lib/$name \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D systemd=disabled \
-D docbook-docs=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
rm -r $PKG/usr/{lib/systemd,share/locale}
}