From 77e2a505b1dd106e705f9c60bf694a7611ed95fb Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 26 Nov 2019 15:59:55 +0100 Subject: testing/cppcodec: new aport --- testing/cppcodec/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/cppcodec/APKBUILD (limited to 'testing/cppcodec/APKBUILD') diff --git a/testing/cppcodec/APKBUILD b/testing/cppcodec/APKBUILD new file mode 100644 index 0000000000..8175b56883 --- /dev/null +++ b/testing/cppcodec/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=cppcodec +pkgver=0.2 +pkgrel=0 +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" +source="https://github.com/tplgy/cppcodec/archive/v$pkgver/cppcodec-v$pkgver.tar.gz" + +build() { + cmake \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" make install +} + +sha512sums="50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3 cppcodec-v0.2.tar.gz" -- cgit v1.2.3