aboutsummaryrefslogtreecommitdiffstats
path: root/testing/connman/APKBUILD
blob: 0b070d98f9abce7e0025b8125a3b95ae7730fd3e (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
55
56
57
58
59
60
61
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=connman
pkgver=1.30
pkgrel=0
pkgdesc="An alternative daemon for managing internet connections on Linux"
url="http://connman.net/"
arch="all"
license="GPLv2"
depends="wpa_supplicant"
depends_dev=""
makedepends="$depends_dev glib-dev iptables-dev readline-dev
	dbus-dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.kernel.org/pub/linux/network/connman/connman-$pkgver.tar.xz
	musl-fixes.patch
	libresolv.patch
	"

_builddir="$srcdir"/connman-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub
	autoreconf -vif || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-wispr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="4a3efdbd6796922db9c6f66da57887fa  connman-1.30.tar.xz
649a12007599e37f250f053e38b197c3  musl-fixes.patch
7ce81d8578903db13b92aae7479f0624  libresolv.patch"
sha256sums="5c5e464bacc9c27ed4e7269fb9b5059f07947f5be26433b59212133663ffa991  connman-1.30.tar.xz
9e4fe373cdffef36e5559581e285c34be2f70f3056b8478a157f0170a192a0a0  musl-fixes.patch
6a36a7d85d12d5ce927c741ca41ddb40a4eb5351dd0112cebc93134113641edb  libresolv.patch"
sha512sums="cc51c9d5ea1732e2408c1e1dfbbab8fc31250df1a584b6a16ac890c80dbb81636b6d62490088ea3090919f1bfa37f33532f404310bd0932e93b21af5f330af44  connman-1.30.tar.xz
5894ca5656bf2643815f1c9efbd6ce5ce413893f82e381da12cbf826d896bbcdced8f051a9a255ca8e3071047a1ac34f072a413cd2f27f1ad413639e16a08c03  musl-fixes.patch
c258e747e13b86c81ae96ac1743abf0c1461b9053c5b386d594a49f0b1890f10d89bea92610762ff609a4cc5fea04a43fab83894702f552b05af400f01cb011e  libresolv.patch"