mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 12:22:26 +01:00
36 lines
998 B
Plaintext
36 lines
998 B
Plaintext
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=reflection-cpp
|
|
pkgver=0.2.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="
|
|
67c560dc15d7f522350b1599b0255da12551429e52b28864fa9ad1aab2a45e7a2f806f2810dfb4a6e88fedfe6e9a9e8d124dd3bc0f37e96e9b56dbb3fee33191 reflection-cpp-0.2.0.tar.gz
|
|
"
|