From c42ffd9ee3e88f19a01abc4516e87aa128d64ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 29 Jul 2020 23:16:43 +0700 Subject: [PATCH] pass: depends on which * remove bash from checkdepends, it'll be provided by chroot-bash. And, having bash in checkdepends will cause trouble in cleanup. * fake HOME variable when testing, since pass will spill a lot of file into $HOME --- srcpkgs/pass/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/pass/template b/srcpkgs/pass/template index a454f932b0..229bb79c70 100644 --- a/srcpkgs/pass/template +++ b/srcpkgs/pass/template @@ -1,14 +1,13 @@ # Template file for 'pass' pkgname=pass version=1.7.3 -revision=2 +revision=3 archs=noarch wrksrc="password-store-${version}" build_style=gnu-makefile make_install_args="WITH_BASHCOMP=yes WITH_ZSHCOMP=yes WITH_FISHCOMP=yes" -make_check_target=test -depends="bash gnupg2 tree" -checkdepends="${depends} git" +depends="bash gnupg2 tree which" +checkdepends="gnupg2 tree which git" short_desc="Stores, retrieves, generates, and synchronizes passwords securely" maintainer="Orphaned " license="GPL-2.0-or-later" @@ -16,6 +15,11 @@ homepage="https://www.passwordstore.org" distfiles="https://git.zx2c4.com/password-store/snapshot/password-store-${version}.tar.xz" checksum=2b6c65846ebace9a15a118503dcd31b6440949a30d3b5291dfb5b1615b99a3f4 +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}"