# Template file for 'keepassx'
pkgname=keepassx
version=0.4.4
revision=1
conflicts="keepassx2>=0"
build_style=qmake
hostmakedepends="pkg-config"
makedepends="libXtst-devel qt-devel"
depends="shared-mime-info"
short_desc="A password manager to secure personal data"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://www.keepassx.org/"
distfiles="https://www.keepassx.org/releases/${version}/${pkgname}-${version}.tar.gz"
checksum=3e27068ca85e68705347f0921c6b3c9248d7c5a84c79c0483daf22d141c0adc4

pre_configure() {
	sed -i '1,1i#include <unistd.h>' src/lib/random.cpp
}
