updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-cinch / PKGBUILD
blobe4611604c73c5746a6200f79c24d66f5a0d42e95
1 # Maintainer: Dominik Honnef <dominikh AT fork-bomb DOT org>
2 pkgname=ruby-cinch
3 pkgver=1.1.2
4 pkgrel=1
5 pkgdesc="A simple, friendly DSL for creating IRC bots"
6 arch=(any)
7 url="http://github.com/cinchrb/cinch"
8 license=(MIT)
9 depends=("ruby>=1.9.1")
10 makedepends=(rubygems)
11 source=(http://rubygems.org/downloads/cinch-$pkgver.gem)
12 md5sums=('784155f836b3e18a9a475a32f734e8be')
13 noextract=(cinch-$pkgver.gem)
15 build() {
16   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" cinch-$pkgver.gem