1 # Contributor: Guten Ye <ywzhaifei [at] gmail [dot] com>
3 pkgname=ruby-build-git # NAME-git
4 pkgver=20110813 # svn auto added
6 pkgdesc="Compile and install Ruby"
8 url="https://github.com/sstephenson/ruby-build"
9 license=("the MIT Licence")
22 md5sums=() # generate with 'makepkg -g'
24 _gitroot="git://github.com/sstephenson/ruby-build.git"
29 msg "Connecting to GIT server...."
31 if [ -d ${_gitname}/.git ] ; then
34 # Change remote url to anongit
35 if [ -z $( git branch -v | grep anongit ) ] ; then
36 git remote set-url origin ${_gitroot}
40 msg "The local files are updated."
42 git clone ${_gitroot} ${_gitname}
44 msg "GIT checkout done or server timeout"
46 # msg "Starting make..."
51 cd ${srcdir}/${_gitname}
53 mkdir -p $pkgdir/usr/bin
54 mkdir -p $pkgdir/usr/share/ruby-build
56 cp bin/* $pkgdir/usr/bin
57 cp share/ruby-build/* $pkgdir/usr/share/ruby-build
60 # vim:set ts=2 sw=2 et: