[arch-commits] Commit in doctest/repos/community-testing-any (PKGBUILD)

Santiago Torres-Arias sangy at gemini.archlinux.org
Sat Nov 27 17:34:33 UTC 2021


    Date: Saturday, November 27, 2021 @ 17:34:32
  Author: sangy
Revision: 1055077

archrelease: copy trunk to community-testing-any

Added:
  doctest/repos/community-testing-any/PKGBUILD
    (from rev 1055075, doctest/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: doctest/repos/community-testing-any/PKGBUILD (from rev 1055075, doctest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-27 17:34:32 UTC (rev 1055077)
@@ -0,0 +1,45 @@
+# Maintainer: Santiago Torres-Arias <santiago in el archlinux organization>
+# Maintainer: Javier Tiá <javier dot tia at gmail dot com>
+
+pkgname=doctest
+pkgver=2.4.6
+pkgrel=1
+pkgdesc='The lightest feature rich C++ single header testing framework'
+arch=('any')
+url='https://github.com/onqtam/doctest'
+license=('MIT')
+makedepends=('cmake')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('39110778e6baf373ef04342d7cb3fe35da104cb40769103e8a2f0035f5a5f1cb')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  mkdir build
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -DDOCTEST_WITH_TESTS=off \
+        -G"Unix Makefiles" \
+        ../
+  make
+}
+
+check() {
+  # FIXME: will not find tests...
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make
+  ctest -C Release --output-on-failure
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+  install -Dm 0644 ../LICENSE.txt \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list