/
PKGBUILD
44 lines (38 loc) · 1.47 KB
/
PKGBUILD
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
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kleopatra
pkgver=${_kdever}
pkgrel=1
pkgdesc="Certificate manager and GUI for OpenPGP and CMS cryptography."
arch=('x86_64')
url='https://invent.kde.org/pim/kleopatra'
license=('LGPL')
depends=('kcodecs6' 'kconfig6' 'kcoreaddons6' 'kcrash6' 'ki18n6'
'kiconthemes6' 'kitemmodels6' 'kcmutils6' 'kio6' 'kwidgetsaddons6' 'kwindowsystem6' 'kxmlgui6'
'kstatusnotifieritem' 'kdbusaddons6'
'gnupg' 'pinentry' 'gpgme' 'libassuan'
'libkleo' 'kmime' 'kidentitymanagement' 'kmailtransport' 'akonadi-mime' 'mimetreeparser')
makedepends=('extra-cmake-modules' 'kdoctools6')
groups=('kde' 'kdepim' 'kde-uninstall')
source=("https://download.kde.org/stable/applications/${_kdever}/src/${pkgname}-${_kdever}.tar.xz"
"https://invent.kde.org/pim/kleopatra/-/commit/87d8b00d4b2286489d5fadc9cfa07f1d721cdfe3.diff")
md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1`
'99e2a33e697b9c18320d81720014b1ef')
prepare() {
cd ${pkgname}-${pkgver}
# gpgme 1.18.0 changes
#patch -p1 -i $srcdir/87d8b00d4b2286489d5fadc9cfa07f1d721cdfe3.diff
}
build() {
cmake -B build -S ${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=OFF \
-DQT_MAJOR_VERSION=6
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}