aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ofono/APKBUILD
blob: e55a912eac8a16f6638f901b8e8778779cde46b3 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:
pkgname=ofono
pkgver=1.17
pkgrel=1
pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications"
url="https://01.org/ofono"
arch="all"
license="GPL2"
depends="bluez mobile-broadband-provider-info"
depends_dev="glib-dev dbus-dev eudev-dev linux-headers bsd-compat-headers libexecinfo-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.xz
	$pkgname.initd"
_builddir="$srcdir"/$pkgname-$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
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--sbindir=/usr/sbin
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
}

md5sums="d280b1d267ba5bf391d2a898fea7c748  ofono-1.17.tar.xz
d159d86d4d6e37b1b2392ea763132091  ofono.initd"
sha256sums="cbf20f07fd15253c682b23c1786d517f505c3688f7c4ea93da777e1523b89635  ofono-1.17.tar.xz
539925e3caa989bb5a40397406ab4afc893a7fa70bc9ff3bd8fd59fb54ac084c  ofono.initd"
sha512sums="d945c87b9c759b459926fcc002d4fb6938c5359a0070a0c623da9f98e342fd2bd92a5f4f22a14e4aa66b5cb3467c3d8f09a95d991ced0b774c066a6406d0746c  ofono-1.17.tar.xz
7f17143545e1a229254b34da76a449d2c1dea238ee988d606de1a12a54fe691cd946f73e446ae786624abbcdc539338334c1d3b0d1e49fdd8ba8ba6aa51b15ff  ofono.initd"