1 # Contributor: Olivier Mehani <olivier.mehani@nicta.com.au>
2 # $Id: PKGBUILD 243 2010-04-23 00:53:05Z shtrom $
6 pkgdesc="OML is a measurement library that allows to define measurement points inside applications"
8 url="http://omf.mytestbed.net/projects/show/oml"
9 license=('custom:MIT-Nicta')
10 depends=('libxml2' 'sqlite3' 'libpcap' 'hyperic-sigar' 'popt')
11 makedepends=('git' 'autoconf' 'asciidoc')
15 _gitroot="git://mytestbed.net/oml.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
37 ./configure --prefix=/usr
39 make DESTDIR="$pkgdir/" install
40 install -D -m 0644 ${srcdir}/$_gitname/COPYING \
41 ${pkgdir}/usr/share/licenses/${pkgname}/COPYING