1 # Contributor: Moritz Heidkamp <moritz@twoticketsplease.de>
2 pkgname=emacs-haml-mode-git
5 pkgdesc="An emacs mode for editing HAML code."
7 url="http://haml-lang.com/"
10 provides=(emacs-haml-mode)
11 install=emacs-haml-mode-git.install
13 _gitroot="git://github.com/nex3/haml-mode.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_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..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 mkdir -p $startdir/pkg/usr/share/emacs/site-lisp/
36 install -Dm644 haml-mode.el $startdir/pkg/usr/share/emacs/site-lisp/