From 0b746bb4a79020f57c29b59c69889167e7e4cded Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Jun 2025 10:02:30 -0700 Subject: [PATCH] add: hyprlock (#5411) (#5459) * add: hyprlock * fix deps and add files (cherry picked from commit a5e8ce1d7c3efe0fe571f7e9763ff1722eaa322e) Co-authored-by: madomado --- anda/desktops/waylands/hyprlock/anda.hcl | 5 ++ anda/desktops/waylands/hyprlock/hyprlock.spec | 46 +++++++++++++++++++ anda/desktops/waylands/hyprlock/update.rhai | 1 + 3 files changed, 52 insertions(+) create mode 100644 anda/desktops/waylands/hyprlock/anda.hcl create mode 100644 anda/desktops/waylands/hyprlock/hyprlock.spec create mode 100644 anda/desktops/waylands/hyprlock/update.rhai diff --git a/anda/desktops/waylands/hyprlock/anda.hcl b/anda/desktops/waylands/hyprlock/anda.hcl new file mode 100644 index 0000000000..20e01b64f6 --- /dev/null +++ b/anda/desktops/waylands/hyprlock/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "hyprlock.spec" + } +} diff --git a/anda/desktops/waylands/hyprlock/hyprlock.spec b/anda/desktops/waylands/hyprlock/hyprlock.spec new file mode 100644 index 0000000000..1f8cd8bc4a --- /dev/null +++ b/anda/desktops/waylands/hyprlock/hyprlock.spec @@ -0,0 +1,46 @@ +Name: hyprlock +Version: 0.8.2 +Release: 1%?dist +Summary: Hyprland's GPU-accelerated screen locking utility +License: BSD-3-Clause +URL: https://github.com/hyprwm/%name +Source0: %url/archive/refs/tags/v%version.tar.gz +Packager: madonuko +BuildRequires: cmake gcc gcc-c++ +BuildRequires: pkgconfig(cairo) +BuildRequires: (pkgconfig(hyprgraphics) with hyprgraphics.nightly-devel) +BuildRequires: pkgconfig(hyprland-protocols) +BuildRequires: (pkgconfig(hyprlang) with hyprlang.nightly-devel) +BuildRequires: pkgconfig(hyprutils) +BuildRequires: (pkgconfig(hyprwayland-scanner) with hyprwayland-scanner.nightly-devel) +BuildRequires: mesa-libgbm-devel +BuildRequires: mesa-libGL-devel +BuildRequires: pkgconfig(pam) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(sdbus-c++) >= 2.0.0 +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(libmagic) + +%description +%summary. + +%prep +%autosetup + +%build +%cmake -DCMAKE_BUILD_TYPE:STRING=Release +%cmake_build + +%install +%cmake_install + +%files +%doc README.md +%license LICENSE +%_bindir/%name +%_pam_confdir/%name +%_datadir/hypr/%name.conf diff --git a/anda/desktops/waylands/hyprlock/update.rhai b/anda/desktops/waylands/hyprlock/update.rhai new file mode 100644 index 0000000000..7f23336bba --- /dev/null +++ b/anda/desktops/waylands/hyprlock/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_rawfile("hyprwm/hyprlock", "main", "VERSION"));