mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 03:39:53 +03:00
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
53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=gtk-layer-shell
|
|
pkgver=0.9.1
|
|
pkgrel=0
|
|
pkgdesc="Create panels and other desktop components in Wayland using the Layer Shell protocol"
|
|
url="https://github.com/wmww/gtk-layer-shell"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later AND MIT"
|
|
makedepends="
|
|
gobject-introspection-dev
|
|
gtk+3.0-dev
|
|
meson
|
|
vala
|
|
wayland-dev
|
|
"
|
|
checkdepends="
|
|
font-dejavu
|
|
xvfb-run
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-demo"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk-layer-shell/archive/v$pkgver.tar.gz"
|
|
options="!check" # tests fail
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dexamples=true \
|
|
-Ddocs=false \
|
|
-Dtests=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
|
|
}
|
|
|
|
demo() {
|
|
pkgdesc="Demo of GTK Layer Shell"
|
|
|
|
amove usr/bin/gtk-layer-demo
|
|
}
|
|
|
|
sha512sums="
|
|
f01954dda7be7bedcc8800d55f61070949e6a9c9f783ee32b1f064cd3f8151b7b136590eb6cde2a9209c59a87a3fc363a399317d7caf4d781b4666697a39bf78 gtk-layer-shell-0.9.1.tar.gz
|
|
"
|