mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-14 03:54: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
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=graphene
|
|
pkgver=1.10.8
|
|
pkgrel=5
|
|
pkgdesc="A thin layer of graphic data types"
|
|
url="http://ebassi.github.io/graphene/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="meson glib-dev gobject-introspection-dev"
|
|
checkdepends="py3-gobject3"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/ebassi/graphene/archive/$pkgver/graphene-$pkgver.tar.gz
|
|
0001-meson-don-t-install-introspection-file-with-installe.patch
|
|
"
|
|
|
|
build() {
|
|
case "$CARCH" in
|
|
arm*)
|
|
# XXX: https://github.com/ebassi/graphene/issues/215
|
|
# neon quite broken on arm 32-bit
|
|
_neon=false
|
|
;;
|
|
*)
|
|
_neon=true
|
|
;;
|
|
esac
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Darm_neon=$_neon \
|
|
-Dinstalled_tests=false \
|
|
-Dintrospection=enabled \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
526b0c17049459b687ceb7f6c26c9d982535e4048e74a0b6282704f9811d3c2e7e0e6cfef166aa953306b6cf77add6677bc600ae0c66cc052dc04c3d0345bd68 graphene-1.10.8.tar.gz
|
|
ce7e9f13821c1f0f4a9b3ae8e744c8418ca516af21417b666ed6f52db623b1214c40180a0d3a00e47a628758dabc2399b627b02fa758e4ddcf0a7e485c360f5b 0001-meson-don-t-install-introspection-file-with-installe.patch
|
|
"
|