mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +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
34 lines
933 B
Text
34 lines
933 B
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
|
|
pkgname=cairomm
|
|
pkgver=1.18.0
|
|
pkgrel=0
|
|
pkgdesc="C++ bindings to Cairo vector graphics library"
|
|
url="https://www.cairographics.org"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later AND MPL-1.1"
|
|
makedepends="meson libsigc++3-dev cairo-dev perl"
|
|
checkdepends="boost-dev font-cantarell"
|
|
subpackages="$pkgname-dev"
|
|
source="https://www.cairographics.org/releases/cairomm-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dboost-shared=true \
|
|
-Dbuild-tests="$(want_check && echo true || echo false)" \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
d358a765136e244773b4a0fdcb2d9c81dd0b76f7a27c7108f94df9765f2d790f5f50b5645c09c292efce3e012528f85114d51916450c5fe6fa87d09f5a405d4c cairomm-1.18.0.tar.xz
|
|
"
|