mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 11:14: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
31 lines
876 B
Text
31 lines
876 B
Text
# Contributor: Zach DeCook <zachdecook@librem.one>
|
|
# Maintainer: Zach DeCook <zachdecook@librem.one>
|
|
pkgname=tomlplusplus
|
|
pkgver=3.4.0
|
|
pkgrel=1
|
|
pkgdesc="Header-only TOML config file parser and serializer for C++17."
|
|
url="https://marzer.github.io/tomlplusplus/"
|
|
arch="all"
|
|
license="MIT"
|
|
source="https://github.com/marzer/tomlplusplus/archive/v3.4.0/tomlplusplus-v3.4.0.tar.gz"
|
|
makedepends="cmake meson nlohmann-json catch2-3"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
|
|
build() {
|
|
abuild-meson . output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
c227fc8147c9459b29ad24002aaf6ab2c42fac22ea04c1c52b283a0172581ccd4527b33c1931e0ef0d1db6b6a53f9e9882c6d4231c7f3494cf070d0220741aa5 tomlplusplus-v3.4.0.tar.gz
|
|
"
|