# Template file for 'pass'
pkgname=pass
version=1.7.4
revision=1
wrksrc="password-store-${version}"
build_style=gnu-makefile
make_install_args="WITH_BASHCOMP=yes WITH_ZSHCOMP=yes WITH_FISHCOMP=yes"
depends="bash gnupg2 tree which"
checkdepends="gnupg2 tree which git"
short_desc="Stores, retrieves, generates, and synchronizes passwords securely"
maintainer="teldra <teldra@rotce.de>"
license="GPL-2.0-or-later"
homepage="https://www.passwordstore.org"
distfiles="https://git.zx2c4.com/password-store/snapshot/password-store-${version}.tar.xz"
checksum=cfa9faf659f2ed6b38e7a7c3fb43e177d00edbacc6265e6e32215ff40e3793c0

do_check() {
	mkdir -p fake-home
	HOME=$(pwd)/fake-home make test
}

passmenu_package() {
	short_desc="Dmenu-based interface to pass"
	depends="dmenu xdotool ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vbin contrib/dmenu/passmenu
	}
}
