void-packages/srcpkgs/CPU-X/template

29 lines
907 B
Bash

# Template file for 'CPU-X'
pkgname=CPU-X
version=3.2.4
revision=3
# /usr/bin/ld: i386:x86-64 architecture of input file
# ../output/lib/libbandwidth.a(routines-x86-64bit.o)'
# is incompatible with i386 output
archs="x86_64*"
build_style=cmake
hostmakedepends="nasm pkg-config"
makedepends="libcpuid-devel libcurl-devel ncurses-devel pciutils-devel
procps-ng-devel json-c-devel $(vopt_if gtk3 'gtk+3-devel')"
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://x0rg.github.io/CPU-X/"
distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
checksum=f266388e13c527a5d1d98ec70957b1284f67aa89470cf71bc98ecb41c21542eb
build_options="gtk3"
build_options_default="gtk3"
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" libexecinfo-devel"
LDFLAGS="-lexecinfo"
;;
esac