summaryrefslogtreecommitdiff
path: root/community/libcoap/APKBUILD
blob: ec2b71b66bdb943175306042145a7d4cd384139b (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=libcoap
pkgver=4.3.5
pkgrel=0
pkgdesc="A CoAP (RFC 7252) implementation"
url="https://libcoap.net/"
arch="all"
license="BSD-2-Clause"
makedepends="automake autoconf libtool asciidoc openssl-dev>3 cunit-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/obgm/libcoap/archive/v$pkgver.tar.gz"

build() {
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-openssl \
		--disable-doxygen \
		--enable-tests
	make
}

check() {
	./tests/testdriver
}

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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -m644 CONTRIBUTE AUTHORS ChangeLog NEWS README.md TODO \
		"$pkgdir"/usr/share/doc/$pkgname
}

sha512sums="
21332f4988c83cc3e26a70db6f2c3028e75fabc7990238d3c13666c5725674231799e147427b0fa827cf6c9e4d9f03d5176129f69425e2439ade13ea82267c05  libcoap-4.3.5.tar.gz
"