aboutsummaryrefslogblamecommitdiffstats
path: root/testing/ofono/APKBUILD
blob: 1cf8c810f87735fe1f565f75c476cee9e6c74541 (plain) (tree)
1
2
3
4
5
                                                           
                                                          
             

           








                                                                                          

                                                                                 
















                                                                        
                                   





                                      
                                                                             

 
                                                            
                                              
                                                                                               
                                                                              
                                                                                                                                                               
                                                                                                                                              
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ofono
pkgver=1.18
pkgrel=0
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="0a6b37c8ace891cb2a7ca5d121043a0a  ofono-1.18.tar.xz
d159d86d4d6e37b1b2392ea763132091  ofono.initd"
sha256sums="53cdbf342913f46bce4827241c60e24255a3d43a94945edf77482ae5b312d51f  ofono-1.18.tar.xz
539925e3caa989bb5a40397406ab4afc893a7fa70bc9ff3bd8fd59fb54ac084c  ofono.initd"
sha512sums="f15d971ea501cda19aa80cb7cb65a008a70eb433931d2b8c80025ab0a424cf35991131d0267e14cb5161eaff46f25dd65fe28a1c5e21cef02c94baa1efa83d6a  ofono-1.18.tar.xz
7f17143545e1a229254b34da76a449d2c1dea238ee988d606de1a12a54fe691cd946f73e446ae786624abbcdc539338334c1d3b0d1e49fdd8ba8ba6aa51b15ff  ofono.initd"