1 # Maintainer: Thomas Weißschuh <thomas_weissschuh || lavabit || com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
4 # Contributor: shamrok <szamrok@gmail.com>
9 pkgdesc="A program suitable for all trades or crafts"
10 arch=('i686' 'x86_64')
11 url="http://kraft.sourceforge.net/index.php?lang=en"
13 depends=('kdepimlibs' 'ctemplate' 'python-reportlab')
17 makedepends=('cmake' 'automoc4' 'boost' 'subversion')
19 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/office/kraft
25 msg "Connecting to $_svntrunk SVN server...."
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver )
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
36 cp -r $_svnmod $_svnmod-build
37 cd ${srcdir}/$_svnmod-build
42 -DCMAKE_BUILD_TYPE=Release \
43 -DCMAKE_INSTALL_PREFIX=/usr
45 # fix /usr/bin/python being python2
46 sed -i 's/python/python2/' ../tools/erml2pdf.py
48 sed -i 's/"python"/"python2"/' ../src/reportgenerator.cpp
50 # fix wrong exception raising (nonfatal)
51 sed -i 's/raise ValueError, "Not enough space"/raise ValueError("Not enough space")/' ../tools/erml2pdf.py
58 cd ${srcdir}/${_svnmod}-build/build
59 make DESTDIR=${pkgdir} install