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

David Runge dvzrv at gemini.archlinux.org
Sun Nov 7 14:54:13 UTC 2021


    Date: Sunday, November 7, 2021 @ 14:54:13
  Author: dvzrv
Revision: 1038659

archrelease: copy trunk to community-any

Added:
  cxxopts/repos/community-any/
  cxxopts/repos/community-any/PKGBUILD
    (from rev 1038658, cxxopts/trunk/PKGBUILD)

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

Copied: cxxopts/repos/community-any/PKGBUILD (from rev 1038658, cxxopts/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-11-07 14:54:13 UTC (rev 1038659)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=cxxopts
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Lightweight C++ command line option parser"
+arch=('any')
+url="https://github.com/jarro2783/cxxopts"
+license=('MIT')
+makedepends=(cmake)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jarro2783/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c')
+b2sums=('129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE='None' \
+        -Wno-dev \
+        -B build \
+        -S .
+  make VERBOSE=1 -C build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make VERBOSE=1 DESTDIR="$pkgdir/" install -C build
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 {CHANGELOG,README}.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list