name=xdg-desktop-portal-hyprland version=1.3.10 release=1 desc="Hyprland portal backend" url="https://github.com/hyprwm/xdg-desktop-portal-hyprland" license="MIT" depend="hyprland xdg-desktop-portal qt6-base" makedepend="cmake ninja" source="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v1.3.10.tar.gz" sha256="SKIP" build() { cmake -S "xdg-desktop-portal-hyprland-1.3.10" -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_PREFIX_PATH=/usr \ -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF \ -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF \ -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF \ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -DCMAKE_CXX_FLAGS="-I/usr/include/QtCore/6.10.1 -I/usr/include/QtCore/6.10.1/QtCore -I/usr/include/QtGui/6.10.1 -I/usr/include/QtGui/6.10.1/QtGui -I/usr/include/QtWidgets/6.10.1 -I/usr/include/QtWidgets/6.10.1/QtWidgets -I/usr/include/QtDBus/6.10.1 -I/usr/include/QtDBus/6.10.1/QtDBus -I/usr/include/QtNetwork/6.10.1 -I/usr/include/QtNetwork/6.10.1/QtNetwork" unset LD_LIBRARY_PATH ninja -C build -j"$JOBS" } package() { DESTDIR="$pkgdir" ninja -C build install }