upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / cli11 / trunk / PKGBUILD
blobe9feeda8abb31fdb23428f7dbf90c90c5117d12f
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=cli11
4 pkgver=2.3.2
5 pkgrel=1
6 pkgdesc="Command line parser for C++11"
7 arch=(any)
8 url="https://github.com/CLIUtils/CLI11"
9 license=(BSD)
10 makedepends=(cmake)
11 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
12 sha256sums=('aac0ab42108131ac5d3344a9db0fdf25c4db652296641955720a4fbe52334e22')
14 build() {
15   cmake -B build -S ${pkgname^^}-${pkgver} \
16     -DCMAKE_INSTALL_PREFIX=/usr \
17     -DCMAKE_BUILD_TYPE=Release \
18     -DCLI11_BUILD_TESTS=OFF \
19     -DCLI11_BUILD_EXAMPLES=OFF
20   cmake --build build
23 package() {
24   DESTDIR="${pkgdir}" cmake --build build --target install
25   install -Dm644 ${pkgname^^}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/