mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 16:24:48 +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
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: team/gnome <fossdd@pwned.life>
|
|
pkgname=json-glib
|
|
pkgver=1.10.6
|
|
pkgrel=1
|
|
pkgdesc="JSON library built on GLib"
|
|
arch="all"
|
|
url="https://wiki.gnome.org/Projects/JsonGlib"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="gobject-introspection-dev glib-dev meson"
|
|
subpackages="$pkgname-dev $pkgname-lang $pkgname-tests $pkgname-dbg"
|
|
source="https://download.gnome.org/sources/json-glib/${pkgver%.*}/json-glib-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Ddocumentation=disabled \
|
|
. build
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C build
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
mkdir -p "$subpkgdir"/usr/
|
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
|
}
|
|
|
|
tests() {
|
|
pkgdesc="Tests for the json-glib package"
|
|
mkdir -p "$subpkgdir"/usr/
|
|
mv "$pkgdir"/usr/share \
|
|
"$pkgdir"/usr/libexec \
|
|
"$subpkgdir"/usr/
|
|
}
|
|
|
|
sha512sums="
|
|
e1c0e33b17333cf94beb381f505c1819090a11b616dcc23a883f231029dff277c2482823278cbf7b8a07e237d45cbfc7b05f132e1234beff609a739fd5704c6e json-glib-1.10.6.tar.xz
|
|
"
|