aboutsummaryrefslogtreecommitdiffstats
path: root/community/connman/APKBUILD
blob: f0f91fe0962b776036721b3d03c32ff35a48a337 (plain) (blame)
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
# Maintainer: Clayton Craft <clayton@craftyguy.net>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=connman
pkgver=1.36
pkgrel=0
pkgdesc="A daemon for managing internet connections"
url="https://connman.net"
arch="all"
license="GPL-2.0-only"
depends="wpa_supplicant"
makedepends="autoconf automake dbus-dev glib-dev iptables-dev libtool
	readline-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.kernel.org/pub/linux/network/connman/$pkgname-$pkgver.tar.xz
	musl-fixes.patch
	libresolv.patch
	connman.initd
	"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	default_prepare
	cd "$builddir"
	autoreconf -vif
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 src/main.conf "$pkgdir"/etc/$pkgname/main.conf
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="c0b9e924a28d58539d44c314168ae7aa46dfea8ce9d125198f525a6d6ef95ca77fd0357c4c4c7548b362b9de8e6f85c7915b1a4cf89b65116c4cbc4df75318e1  connman-1.36.tar.xz
2ed156edca3f2e7f02256f601df288a484dcabb968750a0d26cac3de56079859d1ff7fd73853c1797eb4c71a26072713c9668ed61e407c75bafbed561d3a9126  musl-fixes.patch
c258e747e13b86c81ae96ac1743abf0c1461b9053c5b386d594a49f0b1890f10d89bea92610762ff609a4cc5fea04a43fab83894702f552b05af400f01cb011e  libresolv.patch
42b45d44f5eed966ba003683fcb54ffb4e9a0331599ff1c8e5e64c4c06b42d380c3852b7c73881a1be1eaca887906cac9aede1f5579e8e139fdf90ca8d7adf15  connman.initd"