1 # Contributor: Danny Tatom <dannytatom[at]gmail.com>
2 # Maintainer: James Pearson <james.m.pearson+arch@gmail.com>
7 pkgdesc="CLI to Imgur, letting you upload and delete images."
9 url="http://github.com/xiongchiamiov/limgur"
10 depends=('ruby' 'ruby-curb')
11 optdepends=('scrot: for direct screenshot-upload capabilities')
14 source=(http://rubygems.org/downloads/$pkgname-$pkgver.gem)
15 noextract=($pkgname-$pkgver.gem)
16 md5sums=('fe0a5f3658c2e15e90f06597b791b1e7')
20 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
21 # makepkg will barf when sourcing the PKGBUILD
22 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
24 gem install --ignore-dependencies -i "$pkgdir$_gemdir" $pkgname-$pkgver.gem