summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Vorotnikov2015-06-14 02:56:23 +0300
committerArtem Vorotnikov2015-06-14 02:56:23 +0300
commitfda3ce52e76eac6d4b27a8d984a8ef25fdd79bca (patch)
treeb4505316ea1517c7cff2e6528d422c964070f7d6
downloadaur-fda3ce52e76eac6d4b27a8d984a8ef25fdd79bca.tar.gz
Initial import
-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..ce2d6c96d4b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-execjs
+ pkgdesc = Run JavaScript code from Ruby
+ pkgver = 2.5.2
+ pkgrel = 1
+ url = https://github.com/rails/execjs
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = execjs-2.5.2.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/execjs-2.5.2.gem
+ sha512sums = 67c5a2b8513b5de27371afc4365c994ca3f9914a0918964f97220ac509114eda6801d34e0bde4c28b0daa2e7980bf6aba8851aaedf9dacc2abffd1e020963cc8
+
+pkgname = ruby-execjs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..099394a5ba2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>
+
+_gemname=execjs
+pkgname=ruby-$_gemname
+pkgver=2.5.2
+pkgrel=1
+pkgdesc='Run JavaScript code from Ruby'
+arch=(any)
+url='https://github.com/rails/execjs'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha512sums=('67c5a2b8513b5de27371afc4365c994ca3f9914a0918964f97220ac509114eda6801d34e0bde4c28b0daa2e7980bf6aba8851aaedf9dacc2abffd1e020963cc8')
+
+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"
+}