blob: d35bd260d7f6371776826a5e2f1e5408d20726b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=hardinfo2-git
pkgver=2.1.17.r1.g6216559
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'
'qt5-base'
)
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'
'qt5-base: OpenGL benchmark'
'sysbench: SysBench CPU benchmark'
'udisks2: Storage module'
'usbutils: USB Devices module'
'vulkan-tools: display Vulkan information'
'xdg-utils: open your browser for bugs, homepage & links'
'xorg-xrandr: read monitor setup'
)
install="${pkgname%-git}.install"
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' \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|