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

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


    Date: Saturday, November 27, 2021 @ 17:28:11
  Author: sangy
Revision: 1055065

archrelease: copy trunk to community-any

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

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

Copied: doctest/repos/community-any/PKGBUILD (from rev 1055064, doctest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-27 17:28:11 UTC (rev 1055065)
@@ -0,0 +1,43 @@
+# Maintainer: Javier Tiá <javier dot tia at gmail dot com>
+
+pkgname=doctest
+pkgver=2.4.1
+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=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=('0a0f0be21ee23e36ff6b8b9d63c06a7792e04cce342e1df3dee0e40d1e21b9f0')
+
+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() {
+  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