aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keepassx/APKBUILD
blob: 80df2413a1e25371b64d24cd1ff3731d45f14899 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=keepassx
pkgver=0.4.3
pkgrel=0
pkgdesc="A password manager"
url="http://www.keepassx.org"
arch="all"
license="GPL2"
depends=""
depends_dev="qt-dev libxtst-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://www.keepassx.org/releases/${pkgname}-${pkgver}.tar.gz
	add_unistd.patch"

_builddir=$srcdir/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	qmake || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir" install || return 1
}

md5sums="1df67bb22b2e08df49f09e61d156f508  keepassx-0.4.3.tar.gz
39f4f94d468427f902724a8355b9a3fe  add_unistd.patch"
sha256sums="cd901a0611ce57e62cf6df7eeeb1b690b5232302bdad8626994eb54adcfa1e85  keepassx-0.4.3.tar.gz
16720665a5d3f2eedf9ee04612542ecb38546892b0d8bb5a0df9b53b105d2ab0  add_unistd.patch"
sha512sums="8ce1bc252694e11a8b0da94bb00a4e5ca2837fe099f2f992aa9a93bacc4d94f33970cec687bd73a7a7762e86220a0541fe85a6708a2d4ad1bb3aef5f19935ccc  keepassx-0.4.3.tar.gz
6adbe43e0a39c3d1436601fb3c89daaf726b9c477b673e4d6fb58bf84ce56de3b51e73f5d222128e86124dd3ee000e828b97b78e89366192bca7b6fb923cb0d1  add_unistd.patch"