2023-12-21 22:56:41 +00:00

36 lines
1001 B
Plaintext

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