blob: 8b16456264c854a857653890cc435644924d22bc (
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
|
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Maintainer (Arch): Bruno Pagani <archange@archlinux.org>
# # I maintain this because:
# Arch version uses yubikey libs
# Arch version enables networking support
# Arch version lacks additional optimization and hardening flags
_NETBUILD=OFF
pkgname=keepassxc
pkgver=2.5.4
pkgrel=2
pkgdesc="Cross-platform community-driven port of Keepass password manager"
arch=(x86_64)
url="https://keepassxc.org/"
license=(GPL)
depends=(argon2 libgcrypt libsodium libxtst qrencode
qt5-svg qt5-x11extras
)
makedepends=(cmake qt5-tools)
optdepends=('xclip: keepassxc-cli clipboard support')
source=("$pkgname-$pkgver.tar.xz::https://github.com/keepassxreboot/keepassxc/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz"
"$pkgname-$pkgver.tar.xz.sig::https://github.com/keepassxreboot/keepassxc/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz.sig")
b2sums=('5f7f415cab73c2665e3dff94c2bde039096b04a6e8e8a6ff4fe40d31cf4c6ff789f72d8c4c18ae0325c6db570933110a65348c4c359acadd2c89617435ffd6bd'
'SKIP')
# List of signing keys can be found at https://keepassxc.org/verifying-signatures/
validpgpkeys=(BF5A669F2272CF4324C1FDA8CFB4C2166397D0D2
71D4673D73C7F83C17DAE6A2D8538E98A26FD9C4
AF0AEA44ABAC8F1047733EA7AFF235EEFB5A2517
C1E4CBA3AD78D3AFD894F9E0B7A66F03B59076A8)
build() {
# lto breaks compiling
# PIE causes the tests to fail
export CFLAGS="$CFLAGS -O3 -fstack-protector-all"
export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all"
cmake -S $pkgname-$pkgver -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DWITH_XC_AUTOTYPE=ON \
-DWITH_XC_NETWORKING=OFF \
-DWITH_XC_BROWSER=${_NETBUILD} \
-DWITH_XC_YUBIKEY=OFF \
-DWITH_XC_SSHAGENT=OFF \
-DWITH_XC_KEESHARE=OFF \
-DWITH_XC_UPDATECHECK=OFF \
-DWITH_XC_FDOSECRETS=OFF
cmake --build build
}
check() {
cmake --build build --target test
}
package() {
cmake --build build --target install -- DESTDIR="$pkgdir"
}
|