updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / nsb / PKGBUILD
blobd6d40d7007390b0414eb6d3d90d113c4bd0745f9
1 # Contributor: Kamil Stachowski <kamil.stachowski@gmail.com>
3 pkgname=nsb
4 pkgver=20090712
5 pkgrel=1
6 pkgdesc="named stage backup"
7 url='http://github.com/caminoix/nsb/tree/master'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=()
11 makedepends=('git')
12 optdepends=()
13 provides=('nsb')
14 conflicts=()
15 replaces=()
16 source=()
17 md5sums=()
18 install=$pkgname.install
20 _gitroot='git://github.com/caminoix/nsb.git'
22 build() {
23         msg "Connecting to Git server..."
24         if [ -d "$srcdir/$pkgname" ]; then
25                 cd "$srcdir/$pkgname" && git pull origin || return 1
26         else
27                 git clone "$_gitroot" || return 1
28         fi
29         msg "Git checkout done or server timeout"
31         install -D -m755 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
32         install -D -m644 "$srcdir/$pkgname/$pkgname.conf.sample" "$pkgdir/etc/$pkgname.conf.sample"