# Maintainer: Mark Wagie pkgname=hardinfo2-git pkgver=2.0.18.r2.g60796c2 pkgrel=1 pkgdesc="System Information and Benchmark for Linux Systems." arch=('x86_64') url="https://www.hardinfo2.org" license=('GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later') depends=('gtk3' 'libsoup3') makedepends=('cmake' 'git') optdepends=( 'dmidecode: Memory Devices / System DMI module' 'fwupd: Firmware module' 'iperf3: Internal Network Speed benchmark' 'lm_sensors: Sensors module' 'lsscsi: SCSI support for Storage module' 'mesa-utils: GLX info for Display module' 'pciutils: PCI Devices module' 'sysbench: SysBench CPU benchmark' 'udisks2: Storage module' 'usbutils: USB Devices module' 'xdg-utils: open your browser for bugs, homepage & links') provides=("${pkgname%-git}" 'hardinfo') conflicts=("${pkgname%-git}" 'hardinfo') source=('git+https://github.com/hardinfo2/hardinfo2.git') sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/^release.//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cmake -B build -S "${pkgname%-git}" \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -DCMAKE_INSTALL_LIBDIR='lib' \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }