1 # Maintainer: David Runge <dvzrv@archlinux.org>
6 pkgdesc="Lightweight C++ command line option parser"
8 url="https://github.com/jarro2783/cxxopts"
11 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
12 sha512sums=('248e54e23564660467c7ecf50676b86d3cd10ade89e0ac1d23deb71334cb89cc5eb50f624b385d5119a43ca68ff8b1c74af82dc699b5ccfae54d6dcad4fd9447')
13 b2sums=('180dd3b308c3f16f332336f126f757b7996b4fdd6ddb53e777cb6768c7981286442ad4ef5759db0f2891ded1a8b9b6cd5c6828672cd25f13e7aea8f98c79dd8d')
17 -DCMAKE_INSTALL_PREFIX=/usr
18 -DCMAKE_BUILD_TYPE=None
24 cmake "${cmake_options[@]}"
25 cmake --build build --verbose
29 ctest --test-dir build --output-on-failure
33 DESTDIR="$pkgdir" cmake --install build
34 install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
35 install -vDm 644 $pkgname-$pkgver/{CHANGELOG,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"