# Maintainer: yozi backwards # Contributor: Bernd Amend pkgname='libcatch-cpp-headers' pkgver=1.9.4 pkgrel=1 pkgdesc='C++-native framework for unit-tests using only a header file' arch=(any) url='http://catch-lib.net' license=('custom:BSL') source=("https://raw.githubusercontent.com/philsquared/Catch/v${pkgver}/single_include/catch.hpp" "LICENSE::https://raw.githubusercontent.com/philsquared/Catch/v${pkgver}/LICENSE.txt") sha256sums=('c3715fad6576b6a1dad8f0e7ec86ab56346b543e9a700c161b7c360fb2e1465b' 'c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566') pkgver() { echo $(grep -oEm1 \ '^.*Catch v[0-9]\.[0-9]+\.[0-9]+$' \ catch.hpp | cut -d'v' -f2) } package() { install -D -m644 catch.hpp "${pkgdir}/usr/include/catch.hpp" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: