updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / dkbash-git / PKGBUILD
blobdc24063d9cad8759eb50f77dbbbb1a9b7d8b8a59
1 # Maintainer: David Campbell <davekong@archlinux.us>
2 pkgname=dkbash-git
3 pkgver=20101104
4 pkgrel=1
5 pkgdesc='A collection of bash scripts.'
6 arch=('any')
7 url='http://github.com/davekong/bash'
8 license=('GPL')
9 depends=('tree' 'bash')
10 makedepends=('git')
12 _gitroot='git://github.com/davekong/bash.git'
13 _gitname='bash'
15 build() {
16   cd "$srcdir"
17   msg 'Connecting to GIT server...'
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg 'The local files are updated.'
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg 'GIT checkout done or server timeout'
27   msg 'Starting make...'
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   # BUILD HERE
34   install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
35   install -Dm755 mktree.sh "$pkgdir/usr/bin/mktree"
36   install -Dm755 word_bubbles.sh "$pkgdir/usr/bin/word_bubbles"