[arch-commits] Commit in i7z/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Jul 6 12:04:53 UTC 2020


    Date: Monday, July 6, 2020 @ 12:04:52
  Author: svenstaro
Revision: 657981

upgpkg: i7z 0.27.2.git1-7: Include manpage (FS#67202)

Modified:
  i7z/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-06 11:25:44 UTC (rev 657980)
+++ PKGBUILD	2020-07-06 12:04:52 UTC (rev 657981)
@@ -3,27 +3,28 @@
 
 pkgname=i7z
 pkgver=0.27.2.git1
-pkgrel=6
+pkgrel=7
 pkgdesc="A better i7 (and now i3, i5) reporting tool for Linux"
 arch=('x86_64')
 license=('GPL2')
 depends=('ncurses')
-makedepends=('qt5-base' 'git')
+makedepends=('qt5-base' 'git' 'clang')
 optdepends=('qt5-base: for i7z-gui')
 url="https://github.com/afontenot/i7z"
 source=(git://github.com/afontenot/i7z.git#commit=dfbcd77
         i7z-qt5.patch)
-md5sums=('SKIP'
-         'caaee545e8a0dc7efd107ef62bf8fbc1')
+sha512sums=('SKIP'
+            'd22b28c9e0e1c269aef71a1951e23d04299bc3bde7f882bd584c468bddd04189c6ec9d2a81702dbb784286d61631e099ce54486799d373183d15f796f9ce4af3')
 
 prepare() {
-    cd ${pkgname}
+    cd $pkgname
 
     patch -p1 -i ../i7z-qt5.patch # Port to Qt5
 }
 
 build() {
-    cd ${pkgname}
+    cd $pkgname
+    export CC=clang
     make
 
     cd src/GUI
@@ -31,8 +32,10 @@
     make
 }
 package() {
-    cd ${pkgname}
+    cd $pkgname
 
-    install -Dm 755 i7z ${pkgdir}/usr/bin/i7z
-    install -Dm 755 src/GUI/i7z_GUI ${pkgdir}/usr/bin/i7z-gui
+    install -Dm 755 i7z "$pkgdir"/usr/bin/i7z
+    install -Dm 755 src/GUI/i7z_GUI "$pkgdir"/usr/bin/i7z-gui
+    install -Dm 644 doc/i7z.man "$pkgdir"/usr/share/man/man1/i7z.1
+    gzip --best "$pkgdir"/usr/share/man/man1/i7z.1
 }


More information about the arch-commits mailing list