aboutsummaryrefslogtreecommitdiffstats
path: root/community/cppcodec
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-12-12 11:09:37 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-12 12:47:02 +0100
commit8025b5723e4438aa823eff243fd3792d3dd3edfd (patch)
tree19636129cb9450250c1b5af189ecff7ef93876f9 /community/cppcodec
parent1bce96fc8cd843e43b5491b6555c915ffe31d112 (diff)
downloadaports-8025b5723e4438aa823eff243fd3792d3dd3edfd.tar.bz2
aports-8025b5723e4438aa823eff243fd3792d3dd3edfd.tar.xz
community/cppcodec: move from testing
Diffstat (limited to 'community/cppcodec')
-rw-r--r--community/cppcodec/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/cppcodec/APKBUILD b/community/cppcodec/APKBUILD
new file mode 100644
index 0000000000..8175b56883
--- /dev/null
+++ b/community/cppcodec/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+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"