updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / liboml-git / PKGBUILD
blob8c6c9ec607cda552e4844bf62576914b8f7a3ea2
1 # Contributor: Olivier Mehani <olivier.mehani@nicta.com.au>
2 # $Id: PKGBUILD 243 2010-04-23 00:53:05Z shtrom $
3 pkgname=liboml-git
4 pkgver=20100423
5 pkgrel=1
6 pkgdesc="OML is a measurement library that allows to define measurement points inside applications"
7 arch=(i686 x86_64)
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')
12 provides=(liboml)
13 conflicts=(liboml)
15 _gitroot="git://mytestbed.net/oml.git"
16 _gitname="oml"
18 build() {
19         cd "$srcdir"
20         msg "Connecting to GIT server...."
22         if [ -d $_gitname ] ; then
23                 cd $_gitname && git pull origin
24                 msg "The local files are updated."
25         else
26                 git clone $_gitroot $_gitname
27         fi
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"
36         autoreconf -i
37         ./configure --prefix=/usr
38         make || return 1
39         make DESTDIR="$pkgdir/" install
40         install -D -m 0644 ${srcdir}/$_gitname/COPYING \
41                 ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
42