1 # Contributor: Stephen Diehl <sdiehl at clarku dot edu>
2 pkgname=coffee-script-git
5 pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
7 url=http://coffeescript.org
13 _gitroot=(https://github.com/jashkenas/coffee-script.git)
14 _gitname='coffee-script'
18 msg "Connecting to the coffee-script git repository..."
20 if [ -d "$srcdir/$_gitname" ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
32 rm -rf $_gitname-build
33 git clone $_gitname $_gitname-build
36 install -dm755 "$pkgdir/usr/bin"
37 bin/cake --prefix "$pkgdir/usr" install
39 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
40 install -Dm644 README "$pkgdir/usr/share/doc/${pkgname}/README"