1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Philanecros Heliostein <philanecros@gmail.com>
3 pkgname=emacs-mediawiki-bzr
6 pkgdesc="Use the power of Emacs to edit MediaWiki sites."
7 url="http://www.emacswiki.org/emacs/MediaWikiMode"
12 provides=('emacs-mediawiki')
13 conflicts=('emacs-mediawiki')
14 _bzrtrunk="https://code.launchpad.net/~hexmode/mediawiki-el/trunk"
19 msg "Connecting to Bazaar server...."
21 if [ -d $_bzrmod ] ; then
22 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
23 msg "The local files are updated."
25 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
28 msg "Bazaar checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_bzrmod-build"
32 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
33 cd "$srcdir/$_bzrmod-build"
35 emacs --batch --eval '(progn
37 (byte-compile-file "mediawiki.el"))' || return 1
41 cd "$srcdir/$_bzrmod-build"
43 mkdir -p ${pkgdir}/usr/share/emacs/site-lisp || return 1
44 cp mediawiki.el{,c} ${pkgdir}/usr/share/emacs/site-lisp || return 1