updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / emacs-haml-mode-git / PKGBUILD
blob322e2d99ff520619e26540e74b0121d8f47993e3
1 # Contributor: Moritz Heidkamp <moritz@twoticketsplease.de>
2 pkgname=emacs-haml-mode-git
3 pkgver=20110912
4 pkgrel=1
5 pkgdesc="An emacs mode for editing HAML code."
6 arch=("i686" "x86_64")
7 url="http://haml-lang.com/"
8 license=('MIT')
9 makedepends=('git')
10 provides=(emacs-haml-mode)
11 install=emacs-haml-mode-git.install
13 _gitroot="git://github.com/nex3/haml-mode.git"
14 _gitname="haml-mode"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_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   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/
37