summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-09-25 07:06:53 -0700
committerAndy Weidenbaum2015-09-25 07:06:53 -0700
commit63641846ae88b5b1fb2b8b6dadf9c3861166d37e (patch)
tree3d5f0f6cf293d56b20b091e7276b82dd61c1bdc9
downloadaur-63641846ae88b5b1fb2b8b6dadf9c3861166d37e.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8bc227efaf4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ruby-babel-source
+ pkgdesc = Babel JS source
+ pkgver = 5.8.26
+ pkgrel = 1
+ url = https://rubygems.org/gems/babel-source
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = babel-source-5.8.26.gem
+ source = https://rubygems.org/downloads/babel-source-5.8.26.gem
+ sha256sums = 7fa575c18695cdb508fee5d08de7f2acdcc8a9f73e6e241908c5c76f7723082e
+
+pkgname = ruby-babel-source
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7bfcc410f0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=ruby-babel-source
+pkgver=5.8.26
+pkgrel=1
+pkgdesc="Babel JS source"
+arch=('any')
+url="https://rubygems.org/gems/babel-source"
+license=('MIT')
+depends=('ruby')
+source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
+sha256sums=('7fa575c18695cdb508fee5d08de7f2acdcc8a9f73e6e241908c5c76f7723082e')
+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
+}