1 # Maintainer: Bruno Pagani <archange@archlinux.org>
6 pkgdesc="Command line parser for C++11"
8 url="https://github.com/CLIUtils/CLI11"
11 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
12 sha256sums=('aac0ab42108131ac5d3344a9db0fdf25c4db652296641955720a4fbe52334e22')
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
24 DESTDIR="${pkgdir}" cmake --build build --target install
25 install -Dm644 ${pkgname^^}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/