updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / ruby-gitauth-git / PKGBUILD
blob3f433d88d76a4805e9f267e25e9c36f4c6b59825
1 # Contributor: Markus M. May <mmay AT javafreedom DOT org>
2 pkgname=ruby-gitauth-git
3 pkgver=20091110
4 pkgrel=1
5 pkgdesc="SSH-based authentication for Shared Git Repositories."
6 url="http://github.com/brownbeagle/gitauth"
7 arch=(any)
8 license=('AGPL')
9 depends=('ruby>=1.8.6')
11 makedepends=('git')     
12 conflicts=('ruby-gitauth')
13 provides=('ruby-gitauth')
14 options=(!strip !docs)
15 install=gitauth.install
16 source=()
17 md5sums=()
19 _gitroot=git://github.com/brownbeagle/gitauth.git
20 _gitname=gitauth
22 build() {
23     cd $srcdir
25     msg "Connecting to github.com GIT server...."
26     
27     if [ -d $srcdir/$_gitname ] ; then
28         # update local system
29         cd $_gitname && git pull origin
30         msg "The local files are updated."
31     else
32         # clone git repository
33         git clone $_gitroot
34         cd $_gitname
35     fi
37     msg "Installing submodules"      
38     # initialize sub modules
39     git submodule init
40     git submodule update
42     msg "Installing files"
43     mkdir -p $pkgdir/opt/$_gitname
44     cp -r --preserve=all $srcdir/$_gitname $pkgdir/opt