void-packages/srcpkgs/CPU-X/template

33 lines
1.4 KiB
Bash

# Template file for 'CPU-X'
pkgname=CPU-X
version=4.5.3
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=aeef04fb5c2da85f8790ab74bd66e2e72c9595579d5f64d2d08f093ef69d81f9
# xbps-src will still install checkdepends even if the template says `make_check=no`.
# And breaking the build environment on the CI is also bad, if CPU-X would be part
# of revbumps due to shared libraries it would destroy the CI.
# 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