# Contributor: Kevin Piche # Maintainer: Daniel J Griffiths pkgname=zim pkgver=0.46 pkgrel=1 pkgdesc="A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop." arch=('i686' 'x86_64') license=('GPL' 'PerlArtistic') url="http://zim-wiki.org/" install=zim.install source=(http://www.zim-wiki.org/downloads/${pkgname}-${pkgver}.tar.gz) depends=('pygtk' 'ttf-dejavu') optdepends=( "bzr: 'Version Control' plugin" "graphviz: 'Insert Diagram' and 'Link Map' plugins" "scrot: 'Insert Screenshot' plugin" "texlive-bin: 'Insert Equation' plugin" ) md5sums=('6a0b52f4dbdd8dd8a7f33628193bebec') build() { cd ${srcdir}/${pkgname}-${pkgver} sed -i 's|\t\tinstall_class.run(self)|&\n\t\treturn None|' setup.py } package() { cd ${srcdir}/${pkgname}-${pkgver} python setup.py install --root=${pkgdir} || return 1 }