mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 23:56:21 +02: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
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
|
|
pkgname=gtksourceview5
|
|
pkgver=5.16.0
|
|
pkgrel=0
|
|
pkgdesc="A text widget adding syntax highlighting and more to GNOME"
|
|
url="https://wiki.gnome.org/Projects/GtkSourceView"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
depends_dev="
|
|
gtk4.0-dev
|
|
libxml2-dev
|
|
"
|
|
makedepends="$depends_dev
|
|
gobject-introspection-dev
|
|
libxslt
|
|
meson
|
|
pcre2-dev
|
|
vala
|
|
"
|
|
checkdepends="
|
|
dbus
|
|
ibus
|
|
mesa-dri-gallium
|
|
xvfb-run
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
source="https://download.gnome.org/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz"
|
|
builddir="$srcdir/gtksourceview-$pkgver"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
# -t 10: prevent test-language-specs from timing out on riscv64
|
|
XDG_RUNTIME_DIR="$(mktemp -d -p "$builddir")" \
|
|
xvfb-run -a dbus-run-session -- \
|
|
meson test --print-errorlogs -C output -t 10
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
062d3df12672090851eaea1f533492af86fc2535dc9dbcdb85f3ce9f1eba8f7dc75c4ddc9ecb8b33379ac93af2c5ff4f22381b77d7c4153efe1001e2be1b07f3 gtksourceview-5.16.0.tar.xz
|
|
"
|