summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXorg2022-10-09 15:39:53 +0200
committerXorg2022-10-09 15:40:08 +0200
commitf3a972d89296ea983f316d8f4c97c14f04b6ed99 (patch)
treeea0ce6c7a1c25a70e544e2f59452693f6ab4a031 /PKGBUILD
parent92293cda4652851d39b368012074e565b6643de1 (diff)
downloadaur-f3a972d89296ea983f316d8f4c97c14f04b6ed99.tar.gz
Add check() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 619a36b9e5a7..151c2e3f1df2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,14 @@
_realname=CPU-X
pkgname=cpu-x
pkgver=4.5.0
-pkgrel=1
+pkgrel=2
pkgdesc="A Free software that gathers information on CPU, motherboard and more"
arch=('i686' 'x86_64')
url="http://X0rg.github.io/CPU-X/"
license=('GPL3')
depends=('gtk3' 'ncurses' 'libcpuid>=0.6.0' 'pciutils' 'glfw' 'opencl-icd-loader' 'vulkan-icd-loader' 'procps-ng')
makedepends=('cmake' 'ninja' 'nasm' 'opencl-headers' 'vulkan-headers')
+checkdepends=('mawk' 'nawk')
optdepends=('opencl-driver: packaged openCL driver'
'opengl-driver: packaged openGL driver'
'vulkan-driver: packaged Vulkan driver')
@@ -21,6 +22,10 @@ build() {
cmake --build build
}
+check() {
+ ninja -C build test
+}
+
package() {
DESTDIR="$pkgdir" cmake --install build
}