looks like it builds fine manually,
@waxerski closed the ticket https://github.com/hyprwm/hyprlock/issues/220
Git Clone URL: | https://aur.archlinux.org/hyprlock-git.git (read-only, click to copy) |
---|---|
Package Base: | hyprlock-git |
Description: | Hyprland's GPU-accelerated screen locking utility |
Upstream URL: | https://github.com/hyprwm/hyprlock |
Licenses: | BSD-3-Clause |
Conflicts: | hyprlock |
Provides: | hyprlock |
Submitter: | alba4k |
Maintainer: | alba4k (Vaxry) |
Last Packager: | alba4k |
Votes: | 22 |
Popularity: | 0.88 |
First Submitted: | 2024-02-19 07:46 (UTC) |
Last Updated: | 2025-04-11 23:44 (UTC) |
looks like it builds fine manually,
@waxerski closed the ticket https://github.com/hyprwm/hyprlock/issues/220
Patching CMakeLists.txt with the patch in upstream commit f237dead6cf7c79b713168fb1053758c771a1dfe
in a prepare() function fixes the problem:
diff --git a/PKGBUILD b/PKGBUILD
index aa7893c..b541c60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,6 @@ depends=('wayland' 'hyprlang>=0.4.0' 'cairo' 'pango' 'pam' 'libxkbcommon' 'libgl
makedepends=('git' 'cmake' 'ninja' 'gcc' 'gdb' 'meson' 'wayland-protocols' 'xorgproto')
-source=("${_pkgname}::git+https://github.com/hyprwm/hyprlock.git")
+source=("${_pkgname}::git+https://github.com/hyprwm/hyprlock.git" "cmake.patch")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
-sha256sums=('SKIP')
+sha256sums=('SKIP' 'SKIP')
@@ -25,2 +25,7 @@ pkgver() {
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ patch -Np1 < ../cmake.patch
+}
+
build() {
As of this morning, failing to build:
-- Installing: /home/ron/.cache/pikaur/build/hyprlock-git/pkg/hyprlock-git/usr/bin/hyprlock
CMake Error at build/cmake_install.cmake:64 (install):
install command is not scriptable
add
backup=('etc/pam.d/hyprlock')
As of a commit today the package just keeps saying there's an update and then proceeds to say it's just reinstalling . But if you look at the package versions you'll see why it's doing this now.
hyprlock-git-0.1.0.r70.59997a7-1: parsing pkg list...
:: hyprlock-git-0.1.0.r70.59997a7-1 is up to date -- skipping build
loading packages...
warning: hyprlock-git-0.1.0.r8.gfd8b81ae-1 is up to date -- reinstalling
resolving dependencies...
will add it as a dependency as soon as I have a second to use my laptop
Yes, adding libglvnd fixes it.
Does installing libglvnd fix that?
The following error occurs when building in a clean chroot
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindOpenGL.cmake:545 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:35 (find_package)
Pinned Comments
alba4k commented on 2025-04-09 20:38 (UTC)
To report issues, open pull requests, or check out other hyprland-related packages, you can check out https://github.com/alba4k/hyprwm-pkgbuilds