1 # Maintainer: Robert Orzanna <orschiro@googlemail.com>
6 pkgdesc="A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop."
8 license=('GPL' 'PerlArtistic')
9 url="http://zim-wiki.org/"
10 depends=('pygtk' 'ttf-dejavu')
11 optdepends=('bzr: Version Control plugin'
12 'gnuplot: Insert Gnuplot plugin'
13 'graphviz: Insert Diagram & Link Map plugins'
14 'python2-gtkspell: Spell Checker plugin'
15 'r: Insert GNU R Plot plugin'
16 'scrot: Insert Screenshot plugin'
17 'texlive-bin: Insert Equation plugin')
28 msg "Connecting to zim bzr server...."
30 if [ -d $_bzrmod ] ; then
31 cd $_bzrmod && bzr pull -r $pkgver
32 msg "The local files are updated."
34 bzr branch $_bzrtrunk $_bzrmod -r $pkgver
37 msg "bzr checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf $srcdir/$_bzrmod-build
41 cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build
43 cd $srcdir/$_bzrmod-build
46 #for file in zim/_lib/xdot.py zim/_version.py; do
47 # sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
50 sed -i 's|\t\tinstall_class.run(self)|&\n\t\treturn None|' setup.py
54 cd $srcdir/$_bzrmod-build
56 python2 setup.py install --root=${pkgdir} --optimize=1