aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2019-03-02 13:58:02 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-03-04 19:30:43 +0000
commit71afde49aa7aea65bce0179f9cc25a373cb661c3 (patch)
tree1c18008db7c72214e790fec094828a5e1b31b103
parente4168a2e8ab85a667e031cc7236217c192413259 (diff)
downloadaports-71afde49aa7aea65bce0179f9cc25a373cb661c3.tar.gz
aports-71afde49aa7aea65bce0179f9cc25a373cb661c3.tar.bz2
aports-71afde49aa7aea65bce0179f9cc25a373cb661c3.tar.xz
testing/cjose: new aport
cjose is a C library implementing the Javascript Object Signing and Encryption. It depends on jansson and openssl. The documentation requires an extra step to build/install properly.
-rw-r--r--testing/cjose/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/cjose/APKBUILD b/testing/cjose/APKBUILD
new file mode 100644
index 0000000000..0602496cbd
--- /dev/null
+++ b/testing/cjose/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Johan Bergström <bugs@bergstroem.nu>
+# Maintainer: Johan Bergström <bugs@bergstroem.nu>
+pkgname=cjose
+pkgver=0.6.1
+pkgrel=0
+pkgdesc="A C library implementing the Javascript Object Signing and Encryption"
+url="https://github.com/cisco/cjose"
+arch="all"
+license="MIT"
+depends="jansson openssl"
+makedepends="check-dev coreutils doxygen jansson-dev openssl-dev perl"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/cisco/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver/"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static=no \
+ --with-openssl=/usr \
+ --with-jansson=/usr \
+ --disable-doxygen-ps \
+ --disable-doxygen-pdf
+ make
+ # need to invoke doc generation, otherwise it doesn't get installed properly
+ make doxygen
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="7ae67a6d19591b3d19b888270ec0ca17df399bea117e42686fc1de39b3741ed9a8816f96d33d090687c49c3123cdc95430a781835a525a02d22561ebf5aaa653 cjose-0.6.1.tar.gz"