Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created January 3, 2009 08:28
Show Gist options
  • Save nofxx/42815 to your computer and use it in GitHub Desktop.
Save nofxx/42815 to your computer and use it in GitHub Desktop.
# Ruby Git Archlinux PKGBUILD
# Contributor: nofxx <[email protected]>
pkgname=ruby-git
pkgver=20081228
pkgrel=1
pkgdesc="A dynamic, open source programming language with a focus on simplicity and productivity."
arch=(i686 x86_64)
url="http://www.ruby-lang.org/en/"
license="Ruby"
depends=('glibc' 'gdbm' 'db' 'openssl' 'zlib' 'readline')
makedepends=('git' 'autoconf')
md5sums=()
source=()
_gitroot=http://github.com/juretta/ruby.git
_gitname=ruby
_suffix=19
build() {
cd $startdir/src
msg "Connecting to github...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git pull origin
msg "Git pull ok."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
autoconf
./configure --prefix=/usr --enable-shared --enable-pthread --program-suffix=${_suffix}
make || return 1
make DESTDIR=${startdir}/pkg install
make DESTDIR=${startdir}/pkg install-doc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment