1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Maintainer: Your Name <youremail@domain.com>
10 pkgname=git-goggles-git
13 pkgdesc="git management utilities"
15 url="https://github.com/nowells/git-goggles"
23 md5sums=() #generate with 'makepkg -g'
25 _gitroot=git://github.com/nowells/git-goggles.git
30 msg "Connecting to GIT server...."
32 if [[ -d "$_gitname" ]]; then
33 cd "$_gitname" && git pull origin
34 msg "The local files are updated."
36 git clone "$_gitroot" "$_gitname"
39 msg "GIT checkout done or server timeout"
40 msg "Starting build..."
42 rm -rf "$srcdir/$_gitname-build"
43 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
49 cd "$srcdir/$_gitname-build"
50 python2 setup.py install --root="$pkgdir/" --optimize=1
51 mkdir -p $pkgdir/usr/share/licenses/$pkgname
52 cp $srcdir/$_gitname-build/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
55 # vim:set ts=2 sw=2 et: