updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / kraft / PKGBUILD
blob18ec7f4afad80d5d4b53d7381487f6c752af3077
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>
6 pkgname=kraft
7 pkgver=0.45
8 pkgrel=1
9 pkgdesc="A program suitable for all trades or crafts"
10 arch=('i686' 'x86_64')
11 url="http://www.volle-kraft-voraus.de/"
12 license=('GPL')
13 depends=('kdepimlibs' 'ctemplate' 'python-reportlab' 'python-pypdf')
14 makedepends=('cmake' 'automoc4' 'boost')
15 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
17 build() {
18   cd ${srcdir}
19   rm -rf build
20   mkdir -p build
21   cd build
22   cmake ../${pkgname}-${pkgver} \
23     -DCMAKE_BUILD_TYPE=Release \
24     -DCMAKE_INSTALL_PREFIX=/usr
25   make
27   # fix wrong exception raising (shouldn't be fatal)
28   sed -i 's/raise ValueError, "Not enough space"/raise ValueError("Not enough space")/' ${srcdir}/${pkgname}-${pkgver}/tools/erml2pdf.py
31 package() {
32   cd ${srcdir}/build
33   make DESTDIR=${pkgdir} install
35 sha1sums=('0c552742fffb593f054fa86c72d37b6566d7965c')