blob: f1516feb8d0e55d515ed83c59dc9776443a6471a (
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
|
# Maintainer: asamk <asamk@gmx.de>
pkgname=karp-git
_pkgname=karp
pkgver=r282.454cae3
pkgrel=1
pkgdesc='Simple UI for PDF files modification.'
arch=(x86_64)
url='https://apps.kde.org/karp/'
license=(GPL-2.0-or-later)
depends=(
ghostscript
kirigami
kirigami-addons
kcrash
qt6-base
qt6-webengine
qpdf
)
makedepends=(
git
extra-cmake-modules
)
source=($pkgname::git+https://invent.kde.org/graphics/${_pkgname}.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cmake -B build -S "$srcdir/$pkgname" \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|