55 lines
1.3 KiB
Plaintext

# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=gtk4-layer-shell
pkgver=1.1.0
pkgrel=0
pkgdesc="Library to create desktop components for Wayland using the Layer Shell protocol and GTK4"
url="https://github.com/wmww/gtk4-layer-shell"
arch="all"
license="MIT"
makedepends="
meson
gtk4.0-dev
gobject-introspection-dev
vala
"
checkdepends="
font-dejavu
luajit
python3
xvfb-run
"
subpackages="$pkgname-dev $pkgname-demo $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk4-layer-shell/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # tests fail
build() {
abuild-meson \
-Dtests="$(want_check && echo true || echo false)" \
-Dexamples=true \
. output
meson compile -C output
}
check() {
XDG_RUNTIME_DIR="$(mktemp -d -p "$builddir")" \
xvfb-run -a \
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
demo() {
pkgdesc="Demo of GTK4 Layer Shell"
amove usr/bin/gtk4-layer-demo
}
sha512sums="
3b0728daea61d75dafa5dfacf47f6a6b3dd4c7e6d476917850cfd360d3cd2e48aa8e1210cf37f13738fdba37b1aca04b7c642b3204c9655da83e3ee24b3a26cf gtk4-layer-shell-1.1.0.tar.gz
"