summaryrefslogtreecommitdiffstats
path: root/testing/connman/APKBUILD
blob: 37cf41b150c76a3a990f48be811f7838107feeec (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.24
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"
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
}

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="dd6e1b4d9b9a28d127edb9f9b58bdec1  connman-1.24.tar.xz
07b13030c281a0114cd376e094f1eb1c  musl-fixes.patch
7ce81d8578903db13b92aae7479f0624  libresolv.patch"
sha256sums="551df7a5f0c6e4d69523dd2b3aa2c54525b323457d5135f64816215bad3dc24c  connman-1.24.tar.xz
76b43bb4b0ee93434721e4aa0d1b6f4e45fbe5c33329286f6cb4f3cf458b6eed  musl-fixes.patch
6a36a7d85d12d5ce927c741ca41ddb40a4eb5351dd0112cebc93134113641edb  libresolv.patch"
sha512sums="12ed0b476e8b590602eb5eea6175404cb6e377aba3a061fe42a16548325e2ad1ac3e285e92b4e66bd430ba3766c84da884383abaed0c89dca2ca511d83c8d7b4  connman-1.24.tar.xz
aee4fd55447492edc0f4ee9f9c8fa4eb45a4b7eb158bd896cff31773a069c2aed1feeac0b4189ffd314b38275768601cb37b89f2fbbf12945410c9b7c7928c07  musl-fixes.patch
c258e747e13b86c81ae96ac1743abf0c1461b9053c5b386d594a49f0b1890f10d89bea92610762ff609a4cc5fea04a43fab83894702f552b05af400f01cb011e  libresolv.patch"