1 # Maintainer: Francois Boulogne <fboulogne at april dot org>
2 pkgname=libdivecomputer-git
5 pkgdesc="library for communication with dive computers from various manufacturers"
7 url="http://www.divesoftware.org/"
11 makedepends=('git' 'make')
17 _gitroot="git://libdivecomputer.git.sourceforge.net/gitroot/libdivecomputer/libdivecomputer"
18 _gitname="libdivecomputer"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
43 ./configure --prefix=/usr
48 cd "$srcdir/$_gitname-build"
49 make DESTDIR=$pkgdir install
52 # vim:set ts=2 sw=2 et: