summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5426d90faab6356c03adc70acd7192e6f010f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>

_gemname=twitter
pkgname=ruby-$_gemname
pkgver=5.15.0
pkgrel=1
pkgdesc='A Ruby interface to the Twitter API.'
arch=(any)
url='http://sferik.github.io/twitter/'
license=(MIT)
depends=(ruby ruby-addressable ruby-buftok ruby-equalizer ruby-faraday ruby-http ruby-http_parser.rb ruby-json ruby-memoizable ruby-naught ruby-simple_oauth)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=('71856f234ab671c26c787f07032ce98acbc345c8fbb3194668f8de14a404bb41')

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -e'puts Gem.default_dir')"

  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
}