From 9c15a0f37f1577e3f9e821184edb725ba97bf51c 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..711de937620c 100644 --- a/srcpkgs/j4-dmenu-desktop/template +++ b/srcpkgs/j4-dmenu-desktop/template @@ -4,11 +4,22 @@ 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 depends="dmenu" +checkdepends="catch2 xterm" short_desc="Fast desktop menu" maintainer="Diogo Leal " license="GPL-3.0-or-later" homepage="https://github.com/enkore/j4-dmenu-desktop" distfiles="https://github.com/enkore/j4-dmenu-desktop/archive/r${version}.tar.gz" checksum=77c5605d0c1291bcf1e13b186ea3b32ddf4753de0d0e39127b4a7d2098393e25 + +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args="-DWITH_GIT_CATCH=OFF + -DCATCH_INCLUDE_DIR=$XBPS_CROSS_BASE/usr/include/catch2" +else + configure_args="-DWITH_TESTS=OFF" +fi