mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-30 07:51:58 +01:00
36 lines
911 B
Plaintext
36 lines
911 B
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=cxxopts
|
|
pkgver=3.0.0
|
|
pkgrel=0
|
|
pkgdesc="Lightweight C++ command line option parser as a header only library"
|
|
url="https://github.com/jarro2783/cxxopts"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="cmake ninja"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/jarro2783/cxxopts/archive/v$pkgver/cxxopts-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -G Ninja -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCXXOPTS_BUILD_TESTS=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c cxxopts-3.0.0.tar.gz
|
|
"
|