archrelease: copy trunk to community-any
[ArchLinux/community.git] / trompeloeil / trunk / PKGBUILD
blobfeebecc69a45cfb28a034fe6dd721d6864997545
1 # Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
3 pkgname=trompeloeil
4 pkgver=44
5 pkgrel=1
6 pkgdesc="Thread-safe header-only mocking framework for C++11/14"
7 arch=('x86_64')
8 url="https://github.com/rollbear/trompeloeil"
9 license=('Boost')
10 makedepends=(cmake ninja)
11 checkdepends=(catch2)
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/rollbear/trompeloeil/archive/v${pkgver}.tar.gz")
13 sha256sums=('004877db6ba22f24c7867e112e081eeb68858122f55ebe7c7dd9d8d9e3b46c88')
14 b2sums=('07a65182c69890a089b6d612db3d9c79ecff427c9ff70342e57807ee2d4631be885435bc90af7717c8a63f8b038699ca2606e055e9a01c180b15048413f0f348')
16 build() {
17   cmake \
18     -Bbuild \
19     -GNinja \
20     -S "$pkgname-$pkgver" \
21     -DCMAKE_BUILD_TYPE='Debug' \
22     -DCMAKE_INSTALL_PREFIX='/usr' \
23     -DTROMPELOEIL_INSTALL_TARGETS=ON \
24     -DTROMPELOEIL_INSTALL_DOCS=OFF \
25     -Wno-dev
26   cmake --build build --verbose --target self_test thread_terror custom_recursive_mutex
29 check() {
30   ./build/test/self_test || exit -1
31   ./build/test/thread_terror || exit -1
32   ./build/test/custom_recursive_mutex || exit -1
36 package() {
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: