desktop/kraft/PKGBUILD

35 lines
929 B
Bash

pkgname=kraft
pkgver=0.59
pkgrel=3
pkgdesc="A program suitable for all trades or crafts"
arch=('x86_64')
url="http://www.volle-kraft-voraus.de/"
screenshot="http://kde-apps.org/content/preview.php?preview=3&id=54172&file1=54172-1.jpg&file2=54172-2.jpg&file3=54172-3.jpg&name=Kraft"
license=('GPL')
depends=('kdepimlibs4' 'ctemplate' 'python2-reportlab' 'python2-pdf')
makedepends=('cmake' 'automoc4' 'boost')
source=("git://anongit.kde.org/kraft.git#commit=ae1f09c")
sha512sums=('SKIP')
prepare() {
cd "${srcdir}"
rm -rf build
mkdir -p build
}
build() {
cd build
cmake "../${pkgname}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
# fix wrong exception raising (shouldn't be fatal)
sed -i 's/raise ValueError, "Not enough space"/raise ValueError("Not enough space")/' "${srcdir}/${pkgname}/tools/erml2pdf.py"
}
package() {
cd "${srcdir}/build"
make "DESTDIR=${pkgdir}" install
}