blob: 5c147b660e4c0f637a4a02aee67f5f40871da050 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Konsonanz <maximilian.lehmann@protonmail.com>
pkgname=gpgfrontend
pkgver=2.1.7
pkgrel=1
pkgdesc="An exceptional GUI frontend for the modern GnuPG (gpg)"
arch=('x86_64')
url="https://gpgfrontend.bktus.com"
license=('GPL-3.0-or-later')
depends=(
'gpgme'
'gtest'
'hicolor-icon-theme'
'libarchive'
'openssl'
'qt6-base'
)
makedepends=(
'cmake'
'desktop-file-utils'
'git'
'qt6-tools'
)
source=("git+https://github.com/saturneric/GpgFrontend#tag=v$pkgver"
'git+https://github.com/bricke/Qt-AES.git'
'git+https://github.com/qt/qttranslations.git'
'git+https://github.com/saturneric/GpgFrontend-Modules.git')
sha256sums=('9794a05a23e34a1d5183f42c4931ca94b5b2c1476fa0693ad0284552cfe64647'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd GpgFrontend
git submodule init
git config submodule.third_party/qt-aes.url "$srcdir/Qt-AES"
git config submodule.third_party/qttranslations.url "$srcdir/qttranslations"
git config submodule.modules.url "$srcdir/GpgFrontend-Modules"
git -c protocol.file.allow=always submodule update
# /usr/local/ > /usr/
find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
# Set StartupWMClass
desktop-file-edit --set-key=StartupWMClass --set-value=GpgFrontend \
resource/appstream/com.bktus.gpgfrontend.desktop
}
build() {
cmake -B build -S GpgFrontend \
-DCMAKE_BUILD_TYPE='RelWithDebInfo' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DGPGFRONTEND_GENERATE_LINUX_INSTALL_SOFTWARE='ON' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|