updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gammu-git / PKGBUILD
blob108593c8b6b51c32d140927c608a06f720e5dda8
1 # Contributor: rich_o <rich_o@lavabit.com>
3 pkgname=gammu-git
4 pkgver=20090827
5 pkgrel=1
6 pkgdesc="GNU All Mobile Management Utilities"
7 arch=('i686' 'x86_64')
8 url="http://www.gammu.org/"
9 license=('GPL')
10 depends=('bluez' 'curl')
11 makedepends=('cmake' 'doxygen' 'python' 'git')
12 optdepends=('dialog: support for the gammu-config script')
13 conflicts=('python-gammu' 'gammu' 'gammu-svn')
14 provides=('python-gammu' 'gammu')
15 options=('!makeflags')
16 source=()
17 md5sums=()
19 _gitroot="git://gitorious.org/gammu/mainline.git"
20 _gitname="mainline"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   git clone $_gitroot
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX="/usr" .
36   make || return 1
37   make DESTDIR="$pkgdir/" install
38