testing/aquamarine: new aport

This commit is contained in:
Zach DeCook 2024-08-08 13:27:06 -04:00 committed by omni
parent c97efaffe3
commit 252baea5ce

View File

@ -0,0 +1,49 @@
# Contributor: Zach DeCook <zachdecook@librem.one>
# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=aquamarine
pkgver=0.3.0
pkgrel=0
pkgdesc="Aquamarine is a very light linux rendering backend library"
url="https://github.com/hyprwm/aquamarine"
arch="all"
license="BSD-3-Clause"
source="https://github.com/hyprwm/aquamarine/archive/v$pkgver/aquamarine-v$pkgver.tar.gz"
makedepends="
cmake
eudev-dev
hwdata-dev
hyprutils-dev>=0.1.5
hyprwayland-scanner>=0.4.0
libdisplay-info-dev
libinput-dev
libseat-dev
mesa-dev
pixman-dev
wayland-dev
wayland-protocols
"
subpackages="$pkgname-doc $pkgname-dev"
options="!check" # tests are broken
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="
3d33d9fbc2a98265f101f5660146d789f224e12605d306c2ad238a1bdb3fda3f0b177a64cc023217aa92d5b36c8024487ad703133cbc354ff87b009e5a04d77f aquamarine-v0.3.0.tar.gz
"