aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keepassxc/APKBUILD
blob: adf1b10f0d41fa0cbc8175add9f1b61adb2f261d (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: August Klein <amatcoder@gmail.com>
# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Orson Teodoro <orsonteodoro@hotmail.com>

pkgname=keepassxc
pkgver=2.4.0
pkgrel=1
pkgdesc="Community-driven port of the Windows application Keepass Password Safe"
url="https://keepassxc.org/"
arch="all"
license="GPL-3.0 BSD-3-Clause CC0-1.0 LGPL-2.0-only LGPL-2.1-only \
	LGPL-3.0-or-later Nokia-Qt-exception-1.1 MIT BSL-1.0"
depends="icu-libs"
makedepends="cmake qt5-qtbase-dev qt5-qttools-dev libxtst-dev qt5-qtsvg-dev libqrencode-dev \
	qt5-qtx11extras-dev libgcrypt-dev libgpg-error-dev argon2-dev zlib-dev"
source="https://github.com/keepassxreboot/$pkgname/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver
subpackages="$pkgname-doc"

build() {
	cd "$builddir"
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DWITH_XC_KEESHARE=ON \
		-DKEEPASSXC_BUILD_TYPE=Release .
	make
}
package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -d "$pkgdir"/usr/share/doc/$pkgname/ \
		   "$pkgdir"/usr/share/licenses/$pkgname/
	install -t "$pkgdir"/usr/share/doc/$pkgname/ \
		   "$builddir"/CHANGELOG "$builddir"/README.md
	install -t "$pkgdir"/usr/share/licenses/$pkgname/ \
		   "$builddir"/LICENSE.NOKIA-LGPL-EXCEPTION \
		   "$builddir"/LICENSE.CC0 "$builddir"/COPYING
}

check() {
	cd "$builddir"
	make test
}

sha512sums="b7295f5983237606efd236955dc73d477992d944e547eeb2c3a267d846e70ce6f83e489f58e3bd9b5bb21decabd9052a4ea7b98bd98e8283abbb678ae19e5559  keepassxc-2.4.0-src.tar.xz"