aboutsummaryrefslogtreecommitdiffstats
path: root/community/keepassx/APKBUILD
blob: 8a9b3735f8a4f329cefc8b358a2358367b8be372 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=keepassx
pkgver=2.0.3
pkgrel=0
pkgdesc="A password manager"
url="http://www.keepassx.org"
arch="all"
license="GPL-2.0"
makedepends="cmake qt-dev libxtst-dev libgcrypt-dev"
source="http://www.keepassx.org/releases/${pkgver}/${pkgname}-${pkgver}.tar.gz
	musl-fixes.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	mkdir build
	default_prepare
}

build() {
	cd "$builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DCMAKE_BUILD_TYPE=Release ..
	make
}

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

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="bf1a4ffa49fc4a6b7a27e6292981c9c13920712b4cd86759a99976f7e0593a243ea14575c57d664ba7e55d2449b5d83bc3d43a64a9a6972335e52234da79d773  keepassx-2.0.3.tar.gz
f393ce341eb6941bfb808369f076585536802284ab7ee6034a26284dc70bbf168f4a89dc676357334e30a527a5593cb1b20cabb4e699ae806ca9e229ac6cffdd  musl-fixes.patch"