2024-06-27 04:46:13 +00:00

36 lines
936 B
Plaintext

# Contributor: Zach DeCook <zachdecook@librem.one>
# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=hyprutils
pkgver=0.1.5
pkgrel=0
pkgdesc="Hyprland utilities library used across the ecosystem"
url="https://github.com/hyprwm/hyprutils"
arch="all"
license="BSD-3-Clause"
source="https://github.com/hyprwm/hyprutils/archive/v$pkgver/hyprutils-v$pkgver.tar.gz"
makedepends="cmake pixman-dev"
subpackages="$pkgname-doc $pkgname-dev"
build() {
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="
c7ca50507871aacdb9054a308d03bfd666df817f1020a6c8df00cd88d3368ffcda629eb5b3952a4fece4b191f8cf739d8f837b3baf59bc8582c310063b60037a hyprutils-v0.1.5.tar.gz
"