1 # Contributor: Moritz Heidkamp <moritz@twoticketsplease.de>
2 pkgname=emacs-rails-mode-git
5 pkgdesc="An emacs minor mode for editing Ruby on Rails code."
7 url="http://github.com/tomtt/emacs-rails/tree/master"
10 depends=(emacs-snippet-template-mode emacs-find-recursive emacs-ruby-mode)
11 makedepends=('git' 'emacs-snippet-template-mode')
12 provides=(emacs-rails-mode)
13 install=emacs-rails-mode-git.install
15 _gitroot="git://github.com/tomtt/emacs-rails.git"
16 _gitname="emacs-rails"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 mkdir -p $startdir/pkg/usr/share/emacs/site-lisp/rails-mode
37 install -Dm644 *.el $startdir/pkg/usr/share/emacs/site-lisp/rails-mode