summaryrefslogtreecommitdiff
path: root/testing/cjose/APKBUILD
blob: 4d796c64d52e9e6fa39814e4a4769fd75f09ef25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Johan Bergström <bugs@bergstroem.nu>
# Maintainer: Johan Bergström <bugs@bergstroem.nu>
pkgname=cjose
pkgver=0.6.1
pkgrel=2
pkgdesc="A C library implementing the Javascript Object Signing and Encryption"
url="https://github.com/cisco/cjose"
arch="all !s390x" # tests fails on s390x
license="MIT"
makedepends="check-dev coreutils doxygen jansson-dev openssl-dev>3 perl"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/cisco/cjose/archive/$pkgver.tar.gz"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	CFLAGS="$CFLAGS -Wno-error" \
	./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() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7ae67a6d19591b3d19b888270ec0ca17df399bea117e42686fc1de39b3741ed9a8816f96d33d090687c49c3123cdc95430a781835a525a02d22561ebf5aaa653  cjose-0.6.1.tar.gz
"