mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
abuild now exports CTEST_OUTPUT_ON_FAILURE=ON by default which means this repetition can be removed from the aports.
35 lines
882 B
Text
35 lines
882 B
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=cxxopts
|
|
pkgver=3.2.1
|
|
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
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
7841fb3e6c3c2a057917c962e29fc0090e6ed06f5515aaa5e2a868fef59071a9a99b74d81c32cf613ecf10a68a4d96d6ad07805f48c7c3951ded096a2317dc3d cxxopts-3.2.1.tar.gz
|
|
"
|