# hyprlock - Screen locker for Hyprland
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=hyprlock
version=0.9.4
release=1
desc="Screen locker for Hyprland"
url="https://github.com/hyprwm/hyprlock"
license="BSD-3-Clause"
depend="hyprland hyprlang libxcrypt"
makedepend="cmake ninja"
source="https://github.com/hyprwm/hyprlock/archive/refs/tags/v0.9.4.tar.gz"
sha256="SKIP"

build() {
	cmake -S "hyprlock-0.9.4" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
