updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / emacs-rails-mode-git / PKGBUILD
blob8fc1063079635cb8965be12df3d82ba361325304
1 # Contributor: Moritz Heidkamp <moritz@twoticketsplease.de>
2 pkgname=emacs-rails-mode-git
3 pkgver=20090713
4 pkgrel=1
5 pkgdesc="An emacs minor mode for editing Ruby on Rails code."
6 arch=("i686" "x86_64")
7 url="http://github.com/tomtt/emacs-rails/tree/master"
8 license=('GPL')
9 groups=()
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"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
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