PKGBUILDs/extra/ofono/PKGBUILD

30 lines
753 B
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Andries Radu <admiral0 AT tuxfamily.org>
pkgname=ofono-git
pkgver=20090924
pkgrel=1
pkgdesc="A high-level D-Bus API for use by telephony applications of any license."
arch=('arm')
url="http://www.freesmartphone.org"
license=('GPL')
depends=('glib2' 'dbus')
makedepends=('git' 'gcc' 'make')
_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 $_gitroot
cd $_gitname
fi
./bootstrap || return 1
./configure --prefix=/usr ||return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}