void-packages/srcpkgs/CPU-X/template

26 lines
799 B
Bash

# Template file for 'CPU-X'
pkgname=CPU-X
version=3.2.4
revision=1
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
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