aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qtpass/APKBUILD
blob: 40b5b7f3e247ea5dd49261463a2659e51c7ed95b (plain) (blame)
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
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=qtpass
_pkgname=QtPass
pkgver=1.3.2
pkgrel=0
pkgdesc="Multi-platform GUI for pass"
url="https://qtpass.org/"
arch="all"
license="GPL-3.0-or-later"
depends="gnupg pwgen"
makedepends="qt5-qttools-dev qt5-qtsvg-dev"
source="https://github.com/IJHack/qtpass/archive/v$pkgver/qtpass-$pkgver.tar.gz"
subpackages="$pkgname-doc"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	qmake-qt5
	make
}

check() {
	QT_QPA_PLATFORM=offscreen make check
}

package() {
	install -D -m0755 main/qtpass "$pkgdir/usr/bin/$pkgname"
	install -D -m0644 artwork/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
	install -D -m0644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -D -m0644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
}

sha512sums="9026f74f6ff75fcef2f6a0862484a2a1eaed1370edd0659e8b4d20039affe846e0da3a0a26a804563813bc678638ab67fa516441208e70c7e9de9b2eda876a10  qtpass-1.3.2.tar.gz"