updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / adhcp-git / PKGBUILD
blob56377dedbfde8c7907b187de73fe524cce24c2db
1 # Maintainer: Julian Leyh <julian@vgai.de>
3 pkgname=adhcp-git
4 pkgver=20111215
5 pkgrel=1
6 pkgdesc="implementation of the DHCP protocol in Ada"
7 arch=('i686' 'x86_64')
8 url="http://codelabs.ch/adhcp/"
9 license=('GPL')
10 depends=('gcc-ada' 'libalog' 'libdbusada')
11 makedepends=('git')
12 checkdepends=('ahven' 'netcat6')
13 provides=('adhcp')
14 source=()
15 md5sums=()
17 _gitroot=http://git.codelabs.ch/git/adhcp.git
18 _gitname=adhcp
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
41   make
44 check() {
45   cd "$srcdir/$_gitname-build"
46   make tests
49 package() {
50   cd "$srcdir/$_gitname-build"
52   msg "Installing library..."
53   make DESTDIR="$pkgdir/usr" install