1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/reflection-cpp/APKBUILD
2025-05-03 22:34:33 +00:00

35 lines
998 B
Text

# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=reflection-cpp
pkgver=0.3.0
pkgrel=0
pkgdesc="C++ static reflection support library"
url="https://contour-terminal.org"
arch="noarch"
license="Apache-2.0"
makedepends="cmake samurai"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/contour-terminal/reflection-cpp/archive/refs/tags/v$pkgver.tar.gz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DREFLECTION_TESTING=ON \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
check() {
ctest --test-dir build -C Release
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="
b4a05099249ee155131664f40cd09f2902e4aca7f70a234c9ad66592d31c6f9a49c3bb2dba6cb3ed3762e262216c354be2fe8851145fe43402e2b31c6aae36d7 reflection-cpp-0.3.0.tar.gz
"