public
Last active

coffee-script PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# Maintainer: Gordin <9ordin @t gmail dot com>
# Contributor: Simon Lipp <aur@simon.lipp.name>
# Contributor: Chris Bolton <http://scr.im/chris-kun>
# Contributor: Sergei Lebedev <superbobry at gmail dot com>
# Contributor: flying sheep <flying-sheep@web.de>
 
pkgname=coffee-script
pkgver=1.6.2
pkgrel=2
pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
arch=any
url='http://coffeescript.org'
license=(custom)
depends=(nodejs)
optdepends=('nodejs-profile: to load coffee-script in node')
source=("https://github.com/jashkenas/coffee-script/tarball/$pkgver")
sha256sums=('97b374ba70af0af26b782c51feca7925ea822c3a968d362ba5fc9adb0e7113ae')
 
build() {
cd "$srcdir/jashkenas-coffee-script-"*
export HOME="$PWD" #cake writes bullshit to ~/.noode-libraries
bin/cake --prefix "$srcdir/build" install
}
 
package() {
install -dm755 "$pkgdir/usr/bin"
ln -s '../lib/node_modules/coffee-script/bin/coffee' "$pkgdir/usr/bin/coffee"
ln -s '../lib/node_modules/coffee-script/bin/cake' "$pkgdir/usr/bin/cake"
cd "$srcdir/jashkenas-coffee-script-"*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
cd "$srcdir/build/lib/coffee-script"
find . -type f -exec install -D {} "$pkgdir/usr/lib/node_modules/coffee-script/"{} \;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.