public
Created

ruby-build-git 20120816

  • Download Gist
ruby-build-git 20120816
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Maintainer: Guten Ye <ywzhaifei [at] gmail [dot] com>
# Contributor: Vasil Yonkov <bustervill@gmail.com>
 
pkgname=ruby-build-git
pkgver=20120816
pkgrel=1
pkgdesc="Compile and install Ruby"
arch=("i686" "x86_64")
url="https://github.com/sstephenson/ruby-build"
license=("MIT")
makedepends=('git')
 
_gitroot="git://github.com/sstephenson/ruby-build.git"
_gitname="ruby-build"
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
 
msg "GIT checkout done or server timeout"
msg "Installing..."
}
 
package() {
cd "$srcdir/$_gitname"
 
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/ruby-build
 
cp bin/* $pkgdir/usr/bin
cp share/ruby-build/* $pkgdir/usr/share/ruby-build
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.