# Template file for 'CPU-X'
pkgname=CPU-X
version=4.5.2
revision=1
archs="x86_64* i686*"
build_style=cmake
hostmakedepends="pkg-config nasm"
makedepends="ncurses-devel gettext-devel libcpuid-devel pciutils-devel
 glfw-devel ocl-icd-devel procps-ng-devel libstatgrab gtk+3-devel
 vulkan-loader Vulkan-Headers"
checkdepends="mawk nawk grep"
short_desc="Free software that gathers information on CPU, motherboard and more"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://thetumultuousunicornofdarkness.github.io/CPU-X/"
changelog="https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/blob/master/ChangeLog.md"
distfiles="https://github.com/thetumultuousunicornofdarkness/CPU-X/archive/v${version}.tar.gz"
checksum=6cdab38928ca5684b22f7b8d868d42a25a48be6da813743b6b59a88d6e9f25d1

if [ "$XBPS_BUILD_ENVIRONMENT" != void-packages-ci ]; then
	# Installing the packages in checkdepends causes base-chroot to break.
	# So, only run the checks in CI, where the chroot is ethereal anyway.
	make_check=no
fi

if [ "$XBPS_TARGET_LIBC" = musl ]; then
	makedepends+=" libexecinfo-devel"
	LDFLAGS="-lexecinfo"
fi
