blob: 5d5ae0178384bdcd9205662366828305872ce111 (
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
|
# Maintainer: X0rg
_realname=CPU-X
pkgname=cpu-x-git
pkgver=3.0.0.r0.gc698ca3
pkgrel=1
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-git' 'pciutils' 'procps-ng')
makedepends=('cmake' 'nasm')
optdepends=('curl: check if CPU-X is up-to-date when using --version'
'wget: check if CPU-X is up-to-date when using --version if curl is missing')
provides=('cpu-x')
conflicts=('cpu-x')
source=("git+https://github.com/X0rg/CPU-X.git")
md5sums=('SKIP')
pkgver() {
cd "$_realname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
msg2 "Make 'build' directory..."
mkdir -pv "$srcdir/$_realname/build"
}
build() {
cd "$_realname/build"
msg2 "Run 'cmake'..."
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ..
msg2 "Run 'make'..."
make
}
package() {
cd "$_realname/build"
msg2 "Install..."
make DESTDIR="$pkgdir" install
}
|