summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMario Finelli2015-09-20 19:56:25 -0400
committerMario Finelli2015-09-20 19:56:25 -0400
commit9f156ef7437448e2542d4f03d220b0e2c16be280 (patch)
tree4d7ea48437e55357558dbb1f6f696cf1d31f6438 /PKGBUILD
downloadaur-9f156ef7437448e2542d4f03d220b0e2c16be280.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e5426d90faa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}