summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Vorotnikov2015-06-14 03:28:15 +0300
committerArtem Vorotnikov2015-06-14 03:28:15 +0300
commitc6851ee83970025fc9790316afa746e64d3574a1 (patch)
tree40bedcba25343ac1a217e40cf84c7368caa9560f
downloadaur-c6851ee83970025fc9790316afa746e64d3574a1.tar.gz
Initial import
-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..683cc3abd57
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = ruby-coffee-script
+ pkgdesc = Ruby CoffeeScript Compiler
+ pkgver = 2.4.1
+ pkgrel = 1
+ url = http://github.com/josh/ruby-coffee-script
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-coffee-script-source
+ depends = ruby-execjs
+ noextract = coffee-script-2.4.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/coffee-script-2.4.1.gem
+ sha512sums = 5f19e3dd099408c633243d110fb6a3aece7753eed398c6568388b943a4a068fd5c2085f4e5408ebb7ea7eef529154995fe6e8ca4d437d491ec728a876bfd6492
+
+pkgname = ruby-coffee-script
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..de62a71807e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>
+
+_gemname=coffee-script
+pkgname=ruby-$_gemname
+pkgver=2.4.1
+pkgrel=1
+pkgdesc='Ruby CoffeeScript Compiler'
+arch=(any)
+url='http://github.com/josh/ruby-coffee-script'
+license=(MIT)
+depends=(ruby ruby-coffee-script-source ruby-execjs)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha512sums=('5f19e3dd099408c633243d110fb6a3aece7753eed398c6568388b943a4a068fd5c2085f4e5408ebb7ea7eef529154995fe6e8ca4d437d491ec728a876bfd6492')
+
+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"
+}