upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / doctest / repos / community-any / PKGBUILD
blob98945e6c0498f019058991ba96fa1527518b423d
1 # Maintainer: Santiago Torres-Arias <santiago in el archlinux organization>
2 # Maintainer: Javier TiĆ” <javier dot tia at gmail dot com>
4 pkgname=doctest
5 pkgver=2.4.9
6 pkgrel=1
7 pkgdesc='The lightest feature rich C++ single header testing framework'
8 arch=('any')
9 url='https://github.com/onqtam/doctest'
10 license=('MIT')
11 makedepends=('cmake')
12 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
13 sha256sums=('19b2df757f2f3703a5e63cee553d85596875f06d91a3333acd80a969ef210856')
15 prepare() {
16   cd "${srcdir}/${pkgname}-${pkgver}"
17   mkdir build
20 build() {
21   cd "${srcdir}/${pkgname}-${pkgver}/build"
22   cmake -DCMAKE_INSTALL_PREFIX=/usr \
23         -DCMAKE_BUILD_TYPE=Release \
24         -DCMAKE_INSTALL_LIBDIR=lib \
25         -DDOCTEST_WITH_TESTS=off \
26         -G"Unix Makefiles" \
27         ../
28   make
31 check() {
32   # FIXME: will not find tests...
33   cd "${srcdir}/${pkgname}-${pkgver}/build"
34   make
35   ctest -C Release --output-on-failure
38 package() {
39   cd "${srcdir}/${pkgname}-${pkgver}/build"
40   make DESTDIR="${pkgdir}" install
41   install -Dm 0644 ../LICENSE.txt \
42     "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
45 # vim:set ts=2 sw=2 et: