summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f25bb49fc8867e93b12dc02e9519c3d2ff6f20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: László Várady <laszlo.varady93@gmail.com>
# 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"
}