updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / rbenv-git / PKGBUILD
bloba1fbef0c27f939866ac8572d0f00c5d37ecc1151
1 # Maintainer: Vladimir Chizhov <jagoterr@gmail.com>
2 pkgname=rbenv-git
3 pkgver=20111019
4 pkgrel=1
5 pkgdesc="Simple Ruby version manager"
6 arch=('any')
7 license=('MIT')
8 depends=('ruby')
9 conflicts=('rbenv')
10 provides=('rbenv')
11 source=()
12 md5sums=()
13 url="https://github.com/sstephenson/rbenv"
15 _gitroot="git://github.com/sstephenson/rbenv.git"
16 _gitname="rbenv"
18 build() {
19   cd $srcdir
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
31   cd $srcdir/rbenv
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/