32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# Template file for 'CPU-X'
|
|
pkgname=CPU-X
|
|
version=4.3.0
|
|
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
|
|
$(vopt_if gtk3 gtk+3-devel)"
|
|
checkdepends="mawk nawk grep"
|
|
short_desc="Free software that gathers information on CPU, motherboard and more"
|
|
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://x0rg.github.io/CPU-X/"
|
|
changelog="https://raw.githubusercontent.com/X0rg/CPU-X/master/ChangeLog.md"
|
|
distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
|
|
checksum=6ad7a8ac2d6c687a38a895fbbfbf2de690311676ac374d5857588bb983839433
|
|
build_options="gtk3"
|
|
build_options_default="gtk3"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
LDFLAGS="-lexecinfo"
|
|
fi
|
|
|
|
# Tests depend on the -P flag of grep, which is not available in chroot-grep
|
|
# and installing grep as checkdepends breaks base-chroot.
|
|
# So, only run tests in CI, where the masterdir is ephemeral anyway.
|
|
if [ "$XBPS_BUILD_ENVIRONMENT" != "void-packages-ci" ]; then
|
|
make_check=no # breaks base-chroot
|
|
fi
|