Skip to content

@bustervill /ruby-build-git 20120816
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ruby-build-git 20120816
# 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.