mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-09 06:16:38 +02:00
community/cppcodec: build with samurai
This commit is contained in:
parent
7381d0ec08
commit
4cfbf657c7
@ -2,28 +2,30 @@
|
||||
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||
pkgname=cppcodec
|
||||
pkgver=0.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
arch="noarch"
|
||||
url="https://github.com/tplgy/cppcodec"
|
||||
pkgdesc="Library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16), plus Crockford's base32"
|
||||
license="MIT"
|
||||
makedepends="cmake catch2"
|
||||
makedepends="catch2 cmake samurai"
|
||||
source="https://github.com/tplgy/cppcodec/archive/v$pkgver/cppcodec-v$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
make
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
||||
CTEST_OUTPUT_ON_FAILURE=TRUE ctest --test-dir build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" make install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
sha512sums="50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3 cppcodec-v0.2.tar.gz"
|
||||
sha512sums="
|
||||
50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3 cppcodec-v0.2.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user