summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD23
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..65016ec08fb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ruby-tzinfo-1
+ pkgdesc = Daylight savings aware timezone library
+ pkgver = 1.2.7
+ pkgrel = 1
+ url = http://tzinfo.github.io
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-thread_safe
+ provides = ruby-tzinfo
+ noextract = tzinfo-1.2.7.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/tzinfo-1.2.7.gem
+ sha256sums = 3945d8a57c62a59e691d527ae4daaf562d6e07a3c0d032876c6b066e108072c4
+
+pkgname = ruby-tzinfo-1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d79073864e2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: DDoSolitary <DDoSolitary@gmail.com>
+
+_gemname=tzinfo
+pkgname=ruby-$_gemname-1
+pkgver=1.2.7
+pkgrel=1
+pkgdesc='Daylight savings aware timezone library'
+arch=(any)
+url='http://tzinfo.github.io'
+license=(MIT)
+depends=(ruby ruby-thread_safe)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha256sums=('3945d8a57c62a59e691d527ae4daaf562d6e07a3c0d032876c6b066e108072c4')
+provides=('ruby-tzinfo')
+
+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"
+}