blob: 245a04ce750f79d68e4f64db9a90500622bf05c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Thomas Weißschuh <thomas t-8ch de>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: shamrok <szamrok@gmail.com>
pkgname=kraft
pkgver=1.2.1
_ver=v$pkgver
pkgrel=5
pkgdesc="Handle documents like quotes and invoices in your small business."
arch=('x86_64')
url="http://www.volle-kraft-voraus.de/"
license=('GPL-2.0-only')
depends=(
'qt5-base' 'qt5-svg' 'grantlee' 'kcontacts5' 'ki18n5' 'ctemplate'
)
optdepends=(
'python-reportlab: default PDF generator'
'python-pypdf2: default PDF generator'
'python-weasyprint: alternative PDF generator'
)
makedepends=('cmake' 'extra-cmake-modules' 'asciidoctor' 'po4a')
source=(
"kraft-v${pkgver}.tar.gz::https://github.com/dragotin/kraft/archive/${_ver}.tar.gz"
"0001-Abort-Akonadi-start-if-it-is-already-broken.patch"
"0002-optional-akonadi-contact.patch"
)
sha256sums=('26f8e3ff7d12c86846b6db49ce171af31115f66119f9a7cce13de15f1397dd64'
'ff802760ded75c6d511bda5c9f0a35a3756d2b0c8b6e09a73eb4e915acdada67'
'6220650c3d34cb71d1b9df476aaa3f8e8041b118440c158352a4114a55e9e679')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
for s in "${source[@]}"
do
case "$s" in
(*.patch)
patch -p1 < "${srcdir}/${s}"
esac
done
echo "$pkgver-$pkgrel" > .tag
rm -rf build
mkdir -p build
cd build
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
cmake ".." \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
QT_QPA_PLATFORM=offscreen make test
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
make "DESTDIR=${pkgdir}" install
}
|