summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wiesendorf2016-04-05 13:00:05 +0200
committerDaniel Wiesendorf2016-04-05 13:00:05 +0200
commitc2989360f3992cdc91750976eb00535d786050ac (patch)
tree36057d97442dbb760369579402439562a57b7384
downloadaur-ruby-weather-api.tar.gz
initial
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD23
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6fcdb8787a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ruby-weather-api
+ pkgdesc = Weather-API provides an object-oriented interface to the Yahoo! Weather XML RSS feed service.
+ pkgver = 1.2.0
+ pkgrel = 1
+ url = https://github.com/stewart/weather-api
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-chronic
+ depends = ruby-map-6.5
+ depends = ruby-json
+ noextract = weather-api-1.2.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/weather-api-1.2.0.gem
+ sha1sums = f90607bd644c011f587b0cb0dbd8c293eb504599
+
+pkgname = ruby-weather-api
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a8cbca9db9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Daniel Wiesendorf <daniel.wiesendorf@googlemail.com>
+
+_gemname=weather-api
+pkgname=ruby-$_gemname
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='Weather-API provides an object-oriented interface to the Yahoo! Weather XML RSS feed service.'
+arch=(any)
+url='https://github.com/stewart/weather-api'
+license=(MIT)
+depends=(ruby ruby-chronic ruby-map-6.5 ruby-json)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('f90607bd644c011f587b0cb0dbd8c293eb504599')
+
+package() {
+ 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
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}