diff options
author | Xorg | 2020-05-30 10:48:13 +0200 |
---|---|---|
committer | Xorg | 2020-05-30 10:48:13 +0200 |
commit | 7aee7384b2a3a7a0f66c2752df1166443cc6474b (patch) | |
tree | dc8c16e23ee8c298a08bd9b501561f8090bdaab9 | |
parent | 8e4a6b080326e6892d5ac182e3b4c60d136f4dd0 (diff) | |
download | aur-7aee7384b2a3a7a0f66c2752df1166443cc6474b.tar.gz |
Modify PKGBUILD to adhere Arch package guidelines
https://wiki.archlinux.org/index.php/Arch_package_guidelines
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 3 insertions, 7 deletions
@@ -6,6 +6,7 @@ pkgbase = cpu-x-git arch = i686 arch = x86_64 license = GPL3 + makedepends = git makedepends = cmake makedepends = ninja makedepends = nasm @@ -9,12 +9,12 @@ arch=('i686' 'x86_64') url="http://X0rg.github.io/CPU-X/" license=('GPL3') depends=('gtk3' 'ncurses' 'libcpuid' 'pciutils' 'procps-ng') -makedepends=('cmake' 'ninja' 'nasm') +makedepends=('git' 'cmake' 'ninja' 'nasm') provides=('cpu-x') conflicts=('cpu-x') +options=('!strip' 'debug') source=("git+https://github.com/X0rg/CPU-X.git") sha512sums=('SKIP') -options=('!strip' 'debug') pkgver() { cd "$_realname" @@ -22,15 +22,10 @@ pkgver() { } build() { - msg2 "Generate build system..." cmake -S "$_realname" -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr - - msg2 "Build..." cmake --build build } package() { - msg2 "Install..." DESTDIR="$pkgdir" ninja -C build install - } |