Date: Wednesday, April 11, 2018 @ 17:10:34
  Author: svenstaro
Revision: 315736

upgpkg: i7z 0.27.2.git1-5

Switch to maintained upstream

Modified:
  i7z/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-11 16:00:24 UTC (rev 315735)
+++ PKGBUILD    2018-04-11 17:10:34 UTC (rev 315736)
@@ -4,7 +4,7 @@
 
 pkgname=i7z
 pkgver=0.27.2.git1
-pkgrel=4
+pkgrel=5
 pkgdesc="A better i7 (and now i3, i5) reporting tool for Linux"
 arch=('x86_64')
 license=('GPL2')
@@ -11,23 +11,27 @@
 depends=('ncurses')
 makedepends=('qt4' 'git')
 optdepends=('qt4: for i7z-gui')
-url="https://github.com/ajaiantilal/i7z";
-source=(git://github.com/ajaiantilal/i7z.git#commit=5023138)
+url="https://github.com/afontenot/i7z";
+source=(git://github.com/afontenot/i7z.git#commit=dfbcd77)
 md5sums=('SKIP')
 
+prepare() {
+    cd ${pkgname}
+
+    sed -i "s|/usr/lib/x86_64-linux-gnu/qt4/bin/qmake|qmake-qt4|g" 
src/GUI/Makefile
+}
+
 build() {
-    cd ${srcdir}/${pkgname}
+    cd ${pkgname}
 
     make
 
-    cd GUI
-    qmake-qt4
-    make clean
+    cd src/GUI
     make
 }
 package() {
-    cd ${srcdir}/${pkgname}
+    cd ${pkgname}
 
     install -Dm 755 i7z ${pkgdir}/usr/bin/i7z
-    install -Dm 755 GUI/i7z_GUI ${pkgdir}/usr/bin/i7z-gui
+    install -Dm 755 src/GUI/i7z_GUI ${pkgdir}/usr/bin/i7z-gui
 }

Reply via email to