summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authora-wing2018-12-20 21:23:29 +0800
committera-wing2018-12-20 21:23:29 +0800
commit34daf2831738ea51e04d7454f7164dfec313a690 (patch)
tree1dd8ef8214a6f252c6e559d7747601ae0d73dcca
downloadaur-34daf2831738ea51e04d7454f7164dfec313a690.tar.gz
Init ruby-erubi
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD23
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e9d2bc4a2fa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-erubi
+ pkgdesc = Small ERB Implementation
+ pkgver = 1.8.0
+ pkgrel = 1
+ url = https://github.com/jeremyevans/erubi
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = erubi-1.8.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/erubi-1.8.0.gem
+ sha1sums = d9c2cae43ad52200626b7c783280d23e7f2498f6
+
+pkgname = ruby-erubi
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..28ec24898d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: a-wing <1@233.email>
+
+_gemname=erubi
+pkgname=ruby-$_gemname
+pkgver=1.8.0
+pkgrel=1
+pkgdesc='Small ERB Implementation'
+arch=(any)
+url='https://github.com/jeremyevans/erubi'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('d9c2cae43ad52200626b7c783280d23e7f2498f6')
+
+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/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
+}