name='trompeloeil' version='49' release='2' desc='Thread-safe header-only mocking framework for C++11/14' desc_ru='Потокобезопасный фреймворк для мокирования C++11/14 только из заголовочных файлов' homepage='https://github.com/rollbear/trompeloeil' maintainer='Evgeny Khramov ' maintainer_ru='Евгений Храмов ' architectures=('amd64') license=('BSL-1.0') provides=('trompeloeil') conflicts=('trompeloeil') build_deps=('cmake' 'catch2' 'ninja') build_deps_alt=('cmake' 'catch2' 'ninja-build') build_deps_arch=('cmake' 'catch2' 'ninja') build_deps_debian=('cmake' 'catch2' 'ninja-build') build_deps_fedora=("${build_deps[@]}") build_deps_redos=("${build_deps_fedora[@]}") build_deps_rhel=("${build_deps_fedora[@]}") build_deps_rosa=("${build_deps_fedora[@]}") build_deps_alpine=('cmake' 'catch2' 'ninja') sources=("https://github.com/rollbear/trompeloeil/archive/v${version}.tar.gz") checksums=('SKIP') build() { cd $srcdir/$name-$version cmake \ -Bbuild \ -GNinja \ -DCMAKE_BUILD_TYPE='Debug' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -DTROMPELOEIL_INSTALL_TARGETS=ON \ -DTROMPELOEIL_INSTALL_DOCS=OFF \ -DTROMPELOEIL_BUILD_TESTS=yes \ -Wno-dev cmake --build build --verbose --target self_test thread_terror custom_recursive_mutex -j$(($(nproc) - 1)) } check() { ./build/test/self_test || exit -1 ./build/test/thread_terror || exit -1 ./build/test/custom_recursive_mutex || exit -1 } package() { cd $srcdir/$name-$version DESTDIR="${pkgdir}" cmake --install build install -Dm644 "${srcdir}/${name}-${version}/LICENSE_1_0.txt" "${pkgdir}/usr/share/licenses/${name}/LICENSE" } files() { files-find-include files-find-share }