# Contributions from Arch: # Maintainer: Levente Polyak # Contributor: Martin Wimpress # Contributor: Jorge Araya Navarro # Contributor: Piotr Beling # Contributor: Vianney le Clément pkgname=unittestpp pkgver=2.0.0 pkgrel=1 pkgdesc='Lightweight unit testing framework for C++' url='https://github.com/unittest-cpp/unittest-cpp/' arch=('x86_64') license=('MIT') depends=('gcc-libs') makedepends=('cmake') options=('staticlibs') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz) sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9') prepare() { mkdir -p unittest-cpp-${pkgver}/build } build() { cd unittest-cpp-${pkgver}/build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make all } package() { cd unittest-cpp-${pkgver} make -C build DESTDIR="${pkgdir}" install install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }