diff options
author | Xorg | 2020-05-17 18:15:21 +0200 |
---|---|---|
committer | Xorg | 2020-05-17 18:15:21 +0200 |
commit | 8e4a6b080326e6892d5ac182e3b4c60d136f4dd0 (patch) | |
tree | 62d6903d597ee80b26d90d561f7c93cf6b7e7a23 | |
parent | a81c17b2f6cc899e6cfc08429991c1d345608c7f (diff) | |
download | aur-8e4a6b080326e6892d5ac182e3b4c60d136f4dd0.tar.gz |
Update cpu-x to version 4.0.0
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 12 insertions, 17 deletions
@@ -1,12 +1,13 @@ pkgbase = cpu-x-git pkgdesc = A Free software that gathers information on CPU, motherboard and more - pkgver = 3.2.4.r250.g9844a05 + pkgver = 4.0.0.r2.gbfb09b7 pkgrel = 1 url = http://X0rg.github.io/CPU-X/ arch = i686 arch = x86_64 license = GPL3 makedepends = cmake + makedepends = ninja makedepends = nasm depends = gtk3 depends = ncurses @@ -18,7 +19,7 @@ pkgbase = cpu-x-git options = !strip options = debug source = git+https://github.com/X0rg/CPU-X.git - md5sums = SKIP + sha512sums = SKIP pkgname = cpu-x-git @@ -2,18 +2,18 @@ _realname=CPU-X pkgname=cpu-x-git -pkgver=3.2.4.r250.g9844a05 +pkgver=4.0.0.r2.gbfb09b7 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' 'pciutils' 'procps-ng') -makedepends=('cmake' 'nasm') +makedepends=('cmake' 'ninja' 'nasm') provides=('cpu-x') conflicts=('cpu-x') source=("git+https://github.com/X0rg/CPU-X.git") -md5sums=('SKIP') +sha512sums=('SKIP') options=('!strip' 'debug') pkgver() { @@ -21,22 +21,16 @@ pkgver() { git describe --long --tags --exclude continuous | 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 -DWITH_LIBCURL=0 -DWITH_LIBJSONC=0 .. + msg2 "Generate build system..." + cmake -S "$_realname" -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr - msg2 "Run 'make'..." - make + msg2 "Build..." + cmake --build build } package() { - cd "$_realname/build" msg2 "Install..." - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" ninja -C build install + } |