j4-dmenu-desktop: add support for checks

This commit is contained in:
meator 2021-07-13 08:46:44 +02:00 committed by Érico Nogueira Rolim
parent 288e244f96
commit ea59d69d8d

View file

@ -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 <diogo@diogoleal.com>"
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