1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 # Contributor: Gour <gour@mail.inet.hr>
3 # Contributor: Sergej Pupykin
8 pkgdesc="Publishing environment for Emacs"
9 url="http://mwolson.org/projects/EmacsMuse.html"
13 optdepends=('python2: for experimental mathml-support')
14 conflicts=('emacs-muse')
15 provides=('emacs-muse')
16 install=emacs-muse.install
19 _gitroot=git://repo.or.cz/r/muse-el.git
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 [ -d "$srcdir/$_gitname-build" ] && rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
45 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' \
46 experimental/muse-mathml.el
48 cp Makefile.defs.default Makefile.defs
49 sed -i -e "s|\(PREFIX.*= \)/usr/local|\1/usr|" Makefile.defs
55 cd "$srcdir/$_gitname-build"
56 make DESTDIR=$pkgdir install
57 install -d $pkgdir/usr/share/doc/emacs-muse
58 cp -r examples scripts $pkgdir/usr/share/doc/emacs-muse