From 1ff330d6732b1c1de0197f5cbcc927d9f38e5a0d Mon Sep 17 00:00:00 2001 From: meator Date: Tue, 13 Jul 2021 08:46:44 +0200 Subject: [PATCH] j4-dmenu-desktop: add support for checks --- srcpkgs/j4-dmenu-desktop/template | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/srcpkgs/j4-dmenu-desktop/template b/srcpkgs/j4-dmenu-desktop/template index e4397c672781..5d11a16df302 100644 --- a/srcpkgs/j4-dmenu-desktop/template +++ b/srcpkgs/j4-dmenu-desktop/template @@ -4,7 +4,18 @@ version=2.18 revision=1 wrksrc="${pkgname}-r${version}" build_style=cmake -configure_args="-DWITH_TESTS=OFF" +# The current version (2.18) needs to have /usr/share/applications dir +# for tests, xterm creates and populates it with its .desktop files, +# which fixes tests in case the dir does not exist. +# https://github.com/enkore/j4-dmenu-desktop/pull/123 +checkdepends="catch2 xterm" + +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args="-DWITH_GIT_CATCH=OFF -DCATCH_INCLUDE_DIR=/usr/include/catch2" +else + configure_args="-DWITH_TESTS=OFF" +fi + depends="dmenu" short_desc="Fast desktop menu" maintainer="Diogo Leal "