| 1 | # Contributor: Bart Ribbers <[email protected]> |
| 2 | # Maintainer: Bart Ribbers <[email protected]> |
| 3 | pkgname=cppcodec |
| 4 | pkgver=0.2 |
| 5 | pkgrel=2 |
| 6 | arch="noarch" |
| 7 | url="https://github.com/tplgy/cppcodec" |
| 8 | pkgdesc="Library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16), plus Crockford's base32" |
| 9 | license="MIT" |
| 10 | makedepends="catch2 cmake samurai" |
| 11 | source="https://github.com/tplgy/cppcodec/archive/v$pkgver/cppcodec-v$pkgver.tar.gz" |
| 12 | |
| 13 | build() { |
| 14 | cmake3.5 -B build -G Ninja \ |
| 15 | -DCMAKE_BUILD_TYPE=None \ |
| 16 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 17 | -DCMAKE_INSTALL_LIBDIR=lib |
| 18 | cmake --build build |
| 19 | } |
| 20 | |
| 21 | check() { |
| 22 | ctest --test-dir build |
| 23 | } |
| 24 | |
| 25 | package() { |
| 26 | DESTDIR="$pkgdir" cmake --install build |
| 27 | } |
| 28 | |
| 29 | sha512sums=" |
| 30 | 50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3 cppcodec-v0.2.tar.gz |
| 31 | " |