updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / limgur / PKGBUILD
blobc0d79d448ff3dfb5a90c2857d996c22d0cb2d14c
1 # Contributor: Danny Tatom <dannytatom[at]gmail.com>
2 # Maintainer: James Pearson <james.m.pearson+arch@gmail.com>
4 pkgname=limgur
5 pkgver=2.0.0
6 pkgrel=1
7 pkgdesc="CLI to Imgur, letting you upload and delete images."
8 arch=(any)
9 url="http://github.com/xiongchiamiov/limgur"
10 depends=('ruby' 'ruby-curb')
11 optdepends=('scrot: for direct screenshot-upload capabilities')
12 license=('MIT')
13 groups=('multimedia')
14 source=(http://rubygems.org/downloads/$pkgname-$pkgver.gem)
15 noextract=($pkgname-$pkgver.gem)
16 md5sums=('fe0a5f3658c2e15e90f06597b791b1e7')
18 build(){
19   cd $srcdir
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