# Maintainer: László Várady # Contributor: Snaipe pkgname=criterion pkgver=2.4.2 pkgrel=2 pkgdesc="A cross-platform C and C++ unit testing framework for the 21th century" arch=('x86_64') url="https://github.com/Snaipe/Criterion" license=('MIT') depends=('gettext' 'nanomsg' 'libffi' 'libgit2') makedepends=('meson' 'cmake') checkdepends=('python-cram') options=(!lto) source=("https://github.com/Snaipe/Criterion/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz") sha256sums=('e3c52fae0e90887aeefa1d45066b1fde64b82517d7750db7a0af9226ca6571c0') build() { cd "${pkgname}-${pkgver}" arch-meson -Db_pie=false -Db_lto=false build meson compile -C build } check() { cd "${pkgname}-${pkgver}" meson test -C build } package() { cd "${pkgname}-${pkgver}" meson install -C build --skip-subprojects --destdir "$pkgdir" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }