aboutsummaryrefslogtreecommitdiffstats
path: root/testing/connman/APKBUILD
blob: 905c2b6407fd347d2849e7fb286f32edb0f2f8f4 (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
62
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=connman
pkgver=1.29
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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="5283884504860f5fba2e6f489f517293  connman-1.29.tar.xz
649a12007599e37f250f053e38b197c3  musl-fixes.patch
7ce81d8578903db13b92aae7479f0624  libresolv.patch"
sha256sums="2a5a69693566f7fd59b2e677fa89356ada6d709998aa665caef8707b1e7a8594  connman-1.29.tar.xz
9e4fe373cdffef36e5559581e285c34be2f70f3056b8478a157f0170a192a0a0  musl-fixes.patch
6a36a7d85d12d5ce927c741ca41ddb40a4eb5351dd0112cebc93134113641edb  libresolv.patch"
sha512sums="19f623dd23c6312f29bbd570dcb22d31154ffcd16ee66ed2280df3d9d844301f18538418363222d99eabdc33da0021488ed66ba2e4f88df30646004b724538ee  connman-1.29.tar.xz
5894ca5656bf2643815f1c9efbd6ce5ce413893f82e381da12cbf826d896bbcdced8f051a9a255ca8e3071047a1ac34f072a413cd2f27f1ad413639e16a08c03  musl-fixes.patch
c258e747e13b86c81ae96ac1743abf0c1461b9053c5b386d594a49f0b1890f10d89bea92610762ff609a4cc5fea04a43fab83894702f552b05af400f01cb011e  libresolv.patch"