summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09cfa693777d31809453c2070324df51d65724c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pkgname=diacstuff
pkgver=20130328
pkgrel=2
pkgdesc="rglassd, rcollector for quaggas bgp"
arch=('i686' 'x86_64')
url="http://diac24.net"
license=("GPL2")
depends=('libxml2')
makedepends=('git')
_gitroot='git://git.spaceboyz.net/diacstuff.git'
_gitname='diacstuff'

md5sums=()
	 
build() {
  cd $srcdir
  msg "Connecting to GIT server...."

  if [ -d "$_gitname" ] ; then
    cd "$_gitname"
    git checkout -- configure.ac
    git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  cd "${srcdir}/${_gitname}"

  ./autogen.sh
  ./configure --prefix=/usr || return 1
  make
}
package() {
  cd "${srcdir}/${_gitname}"
  make DESTDIR="$pkgdir" install
}