Package Details: xdg-desktop-portal-hyprland-git 1.3.1.r14.g2d2fb547-1

Git Clone URL: https://aur.archlinux.org/xdg-desktop-portal-hyprland-git.git (read-only, click to copy)
Package Base: xdg-desktop-portal-hyprland-git
Description: xdg-desktop-portal backend for hyprland
Upstream URL: https://github.com/hyprwm/xdg-desktop-portal-hyprland
Licenses: BSD
Conflicts: xdg-desktop-portal-hyprland
Provides: xdg-desktop-portal-hyprland, xdg-desktop-portal-impl, xdg-desktop-portal-wlr
Submitter: That1Calculator
Maintainer: That1Calculator (Vaxry, alba4k)
Last Packager: alba4k
Votes: 25
Popularity: 1.40
First Submitted: 2022-12-04 01:43 (UTC)
Last Updated: 2024-03-18 16:23 (UTC)

Required by (25)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

salimp commented on 2024-01-06 10:46 (UTC) (edited on 2024-01-06 11:20 (UTC) by salimp)

getting this error with both using yay & paru

==> Starting package()...
-- Install configuration: "Release"
-- Installing: /home/salim/.cache/paru/clone/xdg-desktop-portal-hyprland-git/pkg/xdg-desktop-portal-hyprland-git/usr/bin/hyprland-share-picker
-- Up-to-date: /home/salim/.cache/paru/clone/xdg-desktop-portal-hyprland-git/pkg/xdg-desktop-portal-hyprland-git/usr/bin/hyprland-share-picker
-- Installing: /usr/lib/xdg-desktop-portal-hyprland
CMake Error at build/cmake_install.cmake:81 (file):
  file INSTALL cannot copy file
  "/home/salim/.cache/paru/clone/xdg-desktop-portal-hyprland-git/src/xdg-desktop-portal-hyprland/build/xdg-desktop-portal-hyprland"
  to "/usr/lib/xdg-desktop-portal-hyprland": Permission denied.

the package builds and error happends during install process. Also you still need to have hyprlang installed before this package otherwise it fails (not sure why the dependency is not installed although it is in the depends list) I tried both yay & paru

Also the pkgbuild for the non-git version of the package seems to be working. Maybe use the same or similar on this one too ?

jlaunay commented on 2024-01-05 17:46 (UTC)

Thanks for the "fixups" commit

The only thing missing now is DESTDIR="$pkgdir" cmake --install build to avoid "Permission denied" problem

CMake Error at build/cmake_install.cmake:81 (file):
  file INSTALL cannot copy file
  "/home/jlaunay/.cache/paru/clone/xdg-desktop-portal-hyprland-git/src/xdg-desktop-portal-hyprland/build/xdg-desktop-portal-hyprland"
  to "/usr/lib/xdg-desktop-portal-hyprland": Permission denied.

jlaunay commented on 2024-01-04 16:22 (UTC) (edited on 2024-01-04 16:29 (UTC) by jlaunay)

In order to build against current commit 21d216e I had to:

  • Add git submodules (no hyprland-protocols on arch)
  • Add CMake variables in build()
CMAKE_INSTALL_DATAROOTDIR=${PKGDIR}/usr/share 
CMAKE_INSTALL_LIBEXECDIR:STRING=${PKGDIR}/usr/lib 
CMAKE_INSTALL_LIBDIR:STRING=${PKGDIR}/usr/lib 
CMAKE_BUILD_TYPE:STRING=Release 
CMAKE_INSTALL_PREFIX:PATH=${PKGDIR}/usr 
  • Add DESTDIR in package()

Here is the PKGBUILD

salta commented on 2024-01-04 13:26 (UTC)

I can't update it with hyprland-git installed. It says hyprland is missing

tuxx commented on 2024-01-04 03:02 (UTC)

Fails to build:

-- Checking for modules 'wayland-client;wayland-protocols;libpipewire-0.3;libspa-0.2;libdrm;gbm;hyprlang>=0.2.0'
--   Found wayland-client, version 1.22.0
--   Found wayland-protocols, version 1.32
--   Found libpipewire-0.3, version 1.0.0
--   Found libspa-0.2, version 0.2
--   Found libdrm, version 2.4.119
--   Found gbm, version 23.3.2-arch1.2
--   Found hyprlang, version 0.2.1
-- Checking for module 'sdbus-c++'
--   Found sdbus-c++, version 1.3.0
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
Could not open input file: No such file or directory
Could not open input file: No such file or directory
Could not open input file: No such file or directory
Could not open input file: No such file or directory
-- Configuring done (0.5s)
CMake Error at CMakeLists.txt:68 (target_sources):
  Cannot find source file:

    protocols/hyprland-global-shortcuts-v1-protocol.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc
Call Stack (most recent call first):
  CMakeLists.txt:82 (protocol)


-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: xdg-desktop-portal-hyprland-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
xdg-desktop-portal-hyprland-git - exit status 4

bloominstrong commented on 2024-01-04 01:27 (UTC) (edited on 2024-01-04 01:32 (UTC) by bloominstrong)

Thanks for packaging this! Appears to be a couple of issues with the change to cmake. The git submodule needs to be added back in and the cmake install is trying to install straight to /bin not /usr/bin .

phelsong commented on 2024-01-03 18:48 (UTC)

hyprlang needs to be added to depends.

MikeWalrus commented on 2023-11-22 05:54 (UTC)

Please move sdbus-cpp from makedepends to depends. /usr/lib/xdg-desktop-portal-hyprland links to it.

SimpleBR commented on 2023-11-13 13:00 (UTC)

qt6-base,qt6-wayland and libinih are dependencies for the installation to work. I'm not using this git version currently because I had problems with waybar not working properly.