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

David Runge dvzrv at gemini.archlinux.org
Sun Nov 7 14:53:19 UTC 2021


    Date: Sunday, November 7, 2021 @ 14:53:18
  Author: dvzrv
Revision: 1038658

Add cxxopts as makedepends for sfizz.

Added:
  cxxopts/
  cxxopts/repos/
  cxxopts/trunk/
  cxxopts/trunk/PKGBUILD

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

Added: cxxopts/trunk/PKGBUILD
===================================================================
--- cxxopts/trunk/PKGBUILD	                        (rev 0)
+++ cxxopts/trunk/PKGBUILD	2021-11-07 14:53:18 UTC (rev 1038658)
@@ -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