summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-09-25 07:06:53 -0700
committerAndy Weidenbaum2015-09-25 07:06:53 -0700
commit6aa24634649e6b1e0098bb152b66e73279b1309e (patch)
tree3dcec7dd4bd80086ffe75287209ca47c71760dbb /PKGBUILD
downloadaur-ruby-babel-transpiler.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b9fecd6b11
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=ruby-babel-transpiler
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Ruby Babel JS Compiler"
+arch=('any')
+url="https://github.com/babel/ruby-babel-transpiler"
+license=('MIT')
+depends=('ruby' 'ruby-babel-source' 'ruby-execjs')
+source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
+sha256sums=('4c06f4ad9e8e1cabe94f99e11df2f140bb72aca9ba067dbb49dc14d9b98d1570')
+noextract=("${pkgname#*-}-${pkgver}.gem")
+
+package() {
+ cd "$srcdir"
+
+ msg2 'Installing...'
+ gem install \
+ --no-user-install \
+ --ignore-dependencies \
+ -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" \
+ ${pkgname#*-}-$pkgver.gem
+}