1 # Maintainer: Gordin <9ordin @t gmail dot com>
2 # Contributor: Simon Lipp <aur@simon.lipp.name>
3 # Contributor: Chris Bolton <http://scr.im/chris-kun>
4 # Contributor: Sergei Lebedev <superbobry at gmail dot com>
9 pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
11 url=http://coffeescript.org
14 source=(https://github.com/jashkenas/coffee-script/tarball/$pkgver)
15 md5sums=('5dfc3ee21214f1b7e86c0535f5386a35')
18 # cake alters ~/.node_libraries and leaves behind a dead link, so the folder
19 # has to be backed up and moved back later
20 if [ -e ~/.node_libraries ]; then
21 mv ~/.node_libraries ~/tmp_coffeescritpt_install_node_libraries || return 1
24 cd $srcdir/jashkenas-coffee-script-*
26 install -dm755 $pkgdir/usr/bin &&
27 bin/cake --prefix $pkgdir/usr install &&
29 rm ~/.node_libraries/coffee-script &&
30 rmdir ~/.node_libraries
32 if [ -e ~/tmp_coffeescritpt_install_node_libraries ]; then
33 mv ~/tmp_coffeescritpt_install_node_libraries ~/.node_libraries
38 cd $srcdir/jashkenas-coffee-script-*
40 install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE &&
41 install -Dm644 README $pkgdir/usr/share/doc/${pkgname}/README &&
43 rm -rf $pkgdir/usr/bin/cake $pkgdir/usr/bin/coffee &&
44 ln -s /usr/lib/coffee-script/bin/coffee $pkgdir/usr/bin/coffee &&
45 ln -s /usr/lib/coffee-script/bin/cake $pkgdir/usr/bin/cake || return 1