aports/community/gtk4-layer-shell/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

53 lines
1.2 KiB
Text

maintainer="fossdd <fossdd@pwned.life>"
pkgname=gtk4-layer-shell
pkgver=1.1.1
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 --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="
5c47e1df308fe9ee53bc16458209b845854307fd1d939a0342568f3a1a22bc2b40b8d817642c69a81be4c2d291495b1f900c084276c605952eead103b3cb6a02 gtk4-layer-shell-1.1.1.tar.gz
"