2024-02-11 09:16:22 +00:00

36 lines
1001 B
Plaintext

# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=boxed-cpp
pkgver=1.3.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="
9c9d52e46b63d4e9c5c2d696fd4158b5a6a5242291abae66a9510099bcb14c1c70742e1669cf75dee43ef5ade97ecf205a38e34432a7139c097e74bb87e2913c boxed-cpp-1.3.0.tar.gz
"