updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-creole / PKGBUILD
blob34b9b22bda70592aa7a21a58842c823f9e1dbcf6
1 # Maintainer: Gergely Imreh <imrehg@gmail.com>
2 pkgname=ruby-creole
3 pkgver=0.3.7
4 pkgrel=1
5 pkgdesc="Ruby gem Creole, a Creole-to-HTML converter"
6 arch=(any)
7 url="http://rubyforge.org/projects/creole/"
8 license=("Ruby")
9 depends=(ruby)
10 makedepends=(rubygems)
11 source=(http://rubygems.org/downloads/creole-$pkgver.gem)
12 noextract=(creole-$pkgver.gem)
13 md5sums=('56a3c5449fefe737b4ade65b38121e85')
14 build() {
15   cd ${srcdir}
17   # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
18   #  makepkg will barf when sourcing the PKGBUILD
19   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21   gem install --ignore-dependencies -i "$pkgdir$_gemdir" creole-$pkgver.gem