blob: ff62a436a512cb53569c7bb76a5efb69becfbcf9 (
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
50
51
52
53
54
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=libcoap
pkgver=4.2.0
pkgrel=0
pkgdesc="A CoAP (RFC 7252) implementation"
url="https://github.com/obgm/libcoap"
arch="all"
license="BSD-2-Clause"
depends=""
depends_dev=""
makedepends="automake autoconf libtool asciidoc openssl-dev"
checkdepends="cunit-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/obgm/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
./autogen.sh
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-openssl \
--disable-doxygen \
--enable-tests
make
}
check() {
"$builddir"/tests/testdriver
}
package() {
cd "$builddir"
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="a4972633613e5ba379afff57dc42c7858963332c462f361e78536206065e96adfa5da50f11d1347d18a2bbacc00e60d9519eaae0ce0f15e14362aa560f8641fa libcoap-4.2.0.tar.gz"
|