Skip to content

Instantly share code, notes, and snippets.

@manveru
Created February 10, 2011 16:33
Show Gist options
  • Save manveru/820831 to your computer and use it in GitHub Desktop.
Save manveru/820831 to your computer and use it in GitHub Desktop.
Fixed PKGBUILD for coffee-script-git
# Contributor: Stephen Diehl <sdiehl at clarku dot edu>
pkgname=coffee-script-git
pkgver=20110210
pkgrel=1
pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
arch=any
url=http://coffeescript.org
license=(custom)
makedepends=(nodejs)
md5sums=()
source=()
_gitroot=(https://github.com/jashkenas/coffee-script.git)
_gitname='coffee-script'
build() {
cd "$srcdir"
msg "Connecting to the coffee-script git repository..."
if [ -d "$srcdir/$_gitname" ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
cd "$srcdir"
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd $_gitname-build
install -dm755 "$pkgdir/usr/bin"
bin/cake --prefix "$pkgdir/usr" install
rm $pkgdir/usr/bin/{coffee,cake}
ln -s /usr/lib/coffee-script/bin/coffee $pkgdir/usr/bin/coffee
ln -s /usr/lib/coffee-script/bin/cake $pkgdir/usr/bin/cake
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README "$pkgdir/usr/share/doc/${pkgname}/README"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment