Date: Thursday, June 15, 2017 @ 17:28:46
  Author: felixonmars
Revision: 237303

addpkg: deepin-system-monitor 0.0.2-1

Added:
  deepin-system-monitor/
  deepin-system-monitor/repos/
  deepin-system-monitor/trunk/
  deepin-system-monitor/trunk/PKGBUILD
  deepin-system-monitor/trunk/deepin-system-monitor.install

-------------------------------+
 PKGBUILD                      |   34 ++++++++++++++++++++++++++++++++++
 deepin-system-monitor.install |    7 +++++++
 2 files changed, 41 insertions(+)

Added: deepin-system-monitor/trunk/PKGBUILD
===================================================================
--- deepin-system-monitor/trunk/PKGBUILD                                (rev 0)
+++ deepin-system-monitor/trunk/PKGBUILD        2017-06-15 17:28:46 UTC (rev 
237303)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-system-monitor
+pkgver=0.0.2
+pkgrel=1
+pkgdesc='A more user-friendly system monitor'
+arch=('i686' 'x86_64')
+url="https://github.com/linuxdeepin/deepin-system-monitor";
+license=('GPL3')
+depends=('deepin-tool-kit' 'procps-ng' 'nethogs' 'libcap')
+groups=('deepin')
+install=deepin-system-monitor.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-system-monitor/archive/$pkgver.tar.gz";)
+sha512sums=('a11e4ff5a6fd7701f291dc8367e4dc5c8c1eb71a2bea96c119fbb4c0bf6bdc7bc59160db74d3b3bcd527a610e0eca0b7c3af9270d98ed2a9de618cc421c5eb2a')
+
+prepare() {
+  cd deepin-system-monitor-$pkgver
+  rm -r nethogs
+  sed -i 's|error("Build nethogs static library failed.")||' 
deepin-system-monitor.pro
+}
+
+build() {
+  cd deepin-system-monitor-$pkgver
+  qmake-qt5 PREFIX=/usr
+  make
+}
+
+package() {
+  cd deepin-system-monitor-$pkgver
+  install -Dm755 deepin-system-monitor "$pkgdir"/usr/bin/deepin-system-monitor
+}


Property changes on: deepin-system-monitor/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: deepin-system-monitor/trunk/deepin-system-monitor.install
===================================================================
--- deepin-system-monitor/trunk/deepin-system-monitor.install                   
        (rev 0)
+++ deepin-system-monitor/trunk/deepin-system-monitor.install   2017-06-15 
17:28:46 UTC (rev 237303)
@@ -0,0 +1,7 @@
+post_install() {
+  setcap cap_kill,cap_net_raw,cap_dac_read_search,cap_sys_ptrace+ep 
usr/bin/deepin-system-monitor
+}
+
+post_upgrade() {
+  post_install
+}

Reply via email to