1 # Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
6 pkgdesc="Thread-safe header-only mocking framework for C++11/14"
8 url="https://github.com/rollbear/trompeloeil"
10 makedepends=(cmake ninja)
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/rollbear/trompeloeil/archive/v${pkgver}.tar.gz")
13 sha256sums=('004877db6ba22f24c7867e112e081eeb68858122f55ebe7c7dd9d8d9e3b46c88')
14 b2sums=('07a65182c69890a089b6d612db3d9c79ecff427c9ff70342e57807ee2d4631be885435bc90af7717c8a63f8b038699ca2606e055e9a01c180b15048413f0f348')
20 -S "$pkgname-$pkgver" \
21 -DCMAKE_BUILD_TYPE='Debug' \
22 -DCMAKE_INSTALL_PREFIX='/usr' \
23 -DTROMPELOEIL_INSTALL_TARGETS=ON \
24 -DTROMPELOEIL_INSTALL_DOCS=OFF \
26 cmake --build build --verbose --target self_test thread_terror custom_recursive_mutex
30 ./build/test/self_test || exit -1
31 ./build/test/thread_terror || exit -1
32 ./build/test/custom_recursive_mutex || exit -1
37 DESTDIR="${pkgdir}" cmake --install build
38 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE_1_0.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
41 # vim:set ts=2 sw=2 et: