1 # Contributor: Nils <mail@n-sch.de>
2 pkgname=emacs-markdown-mode-git
5 pkgdesc='Emacs markdown-mode'
7 url='http://jblevins.org/projects/markdown-mode/'
9 makedepends=('emacs' 'git')
11 install=${pkgname}.install
12 provides=(emacs-markdown-mode)
14 _gitroot="git://jblevins.org/git/markdown-mode.git"
15 _gitname="emacs-markdown-mode-git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 mkdir -p $startdir/pkg/usr/share/emacs/site-lisp/markdown-mode
36 install -Dm644 *.el $startdir/pkg/usr/share/emacs/site-lisp/markdown-mode