mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-28 09:02:41 +02:00
36 lines
1001 B
Plaintext
36 lines
1001 B
Plaintext
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=boxed-cpp
|
|
pkgver=1.2.2
|
|
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="
|
|
20daf2290b545c3a6518918539841bc09a2b0cbe40937cb2e47dc34aff148870b7aeb98079892d928403d1194967dd89f2272e2c58a5095e452a5e4ccca74232 boxed-cpp-1.2.2.tar.gz
|
|
"
|