summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c99af627218dc8d5c713925e7ba9326be8d1184a (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
# Maintainer: Alexander Schnaidt <alex.schnaidt@gmail.com>
# Contributor: Brandon Moller <mollerbw@gmail.com>
pkgname=passwordsafe-git
pkgver=r11444.80baea965
pkgrel=1
pkgdesc="Simple & Secure Password Management"
arch=('i686' 'x86_64')
url="https://pwsafe.org/"
license=('Artistic2.0')
depends=('libxtst' 'wxgtk' 'qrencode' 'yubikey-personalization' 'xerces-c')
makedepends=('git' 'cmake' 'gtest' 'zip' 'libxt')
optdepends=('xvkbd: virtual-keyboard support')
conflicts=('passwordsafe-debian' 'passwordsafe' 'pwsafe')
source=("$pkgname::git+https://github.com/pwsafe/pwsafe.git")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname"
	mkdir -p build && cd build
	
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
	make
}

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