updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / emacs-muse-git / PKGBUILD
blob1bea5edc4fc2ce7c6f4daa959a5e2a466649896f
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 # Contributor: Gour <gour@mail.inet.hr>
3 # Contributor: Sergej Pupykin
5 pkgname=emacs-muse-git
6 pkgver=20111201
7 pkgrel=1
8 pkgdesc="Publishing environment for Emacs"
9 url="http://mwolson.org/projects/EmacsMuse.html"
10 arch=('any')
11 license=('GPL3')
12 depends=('emacs')
13 optdepends=('python2: for experimental mathml-support')
14 conflicts=('emacs-muse')
15 provides=('emacs-muse')
16 install=emacs-muse.install
17 source=()
18 md5sums=()
19 _gitroot=git://repo.or.cz/r/muse-el.git
20 _gitname=muse
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
40   #
41   # BUILD HERE
42   #
44   # python2 fix,  
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
50   make
51   cd examples
52   make
54 package() {
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