1 # Maintainer: Vladimir Chizhov <jagoterr@gmail.com>
5 pkgdesc="Simple Ruby version manager"
13 url="https://github.com/sstephenson/rbenv"
15 _gitroot="git://github.com/sstephenson/rbenv.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
32 mkdir -p $pkgdir/usr/bin
33 mkdir -p $pkgdir/usr/share/rbenv/libexec
34 mkdir -p $pkgdir/usr/share/licenses/$pkgname
35 install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname
36 install -m 755 ./libexec/* $pkgdir/usr/share/rbenv/libexec/
37 ln -s /usr/share/rbenv/libexec/rbenv $pkgdir/usr/bin/