30 lines
982 B
Plaintext
30 lines
982 B
Plaintext
# Description: A GTK+ backend for xdg-desktop-portal
|
|
# URL: https://github.com/flatpak/xdg-desktop-portal-gtk
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: gtk3 xdg-desktop-portal
|
|
# Optional: dconf gnome-desktop gnome-shell
|
|
|
|
name=xdg-desktop-portal-gtk
|
|
version=1.15.1
|
|
release=1
|
|
source=(https://github.com/flatpak/xdg-desktop-portal-gtk/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst dconf && PKGMK_XDGDPGTK+=' -D settings=enabled' || PKGMK_XDGDPGTK+=' -D settings=disabled'
|
|
prt-get isinst gnome-desktop && PKGMK_XDGDPGTK+=' -D wallpaper=enabled' || PKGMK_XDGDPGTK+=' -D wallpaper=disabled'
|
|
|
|
sed -i '/subdir('\''po'\'')/d' $name-$version/meson.build
|
|
|
|
meson setup $name-$version build $PKGMK_XDGDPGTK \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true
|
|
meson compile -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -fr $PKG/usr/lib/systemd
|
|
}
|