j4-dmenu-desktop: add support for checks
This commit is contained in:
parent
288e244f96
commit
ea59d69d8d
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue