updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / coffee-script-git / PKGBUILD
blob3e563c9b9ea76745ed0fb20328d5da29ab4cfb41
1 # Contributor: Stephen Diehl <sdiehl at clarku dot edu>
2 pkgname=coffee-script-git
3 pkgver=20101224
4 pkgrel=1
5 pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
6 arch=any
7 url=http://coffeescript.org
8 license=(custom)
9 makedepends=(nodejs)
10 md5sums=()
11 source=()
13 _gitroot=(https://github.com/jashkenas/coffee-script.git)
14 _gitname='coffee-script'
16 build() {
17   cd "$srcdir"
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."
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   cd "$srcdir"
32   rm -rf $_gitname-build
33   git clone $_gitname $_gitname-build
34   cd $_gitname-build
36   install -dm755 "$pkgdir/usr/bin"
37   bin/cake --prefix "$pkgdir/usr" install
38    
39   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
40   install -Dm644 README "$pkgdir/usr/share/doc/${pkgname}/README"