PKGBUILDs/alarm/ofono-git/PKGBUILD
2012-03-12 16:54:09 -04:00

33 lines
786 B
Bash

# Maintainer: Andries Radu <admiral0 AT tuxfamily.org>
plugrel=1
pkgname=ofono-git
pkgver=20110609
pkgrel=1
pkgdesc="A high-level D-Bus API for use by telephony applications of any license."
arch=('arm' 'i686' 'x86_64')
url="http://www.freesmartphone.org"
license=('GPL')
depends=('glib2' 'dbus' 'bluez')
makedepends=('git')
_gitroot="git://git.kernel.org/pub/scm/network/ofono/ofono.git"
_gitname="ofono"
build() {
cd $srcdir
msg "Connecting to git.kernel.org GIT server...."
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone --depth 1 $_gitroot
cd $_gitname
fi
./bootstrap || return 1
./configure --prefix=/usr ||return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}