# Tanım: Daha kullanıcı dostu bir sistem monitörü
# URL: https://github.com/linuxdeepin/deepin-system-monitor
# Paketçi: Cihan_Alkan
# Gerekler: qt5 nethogs libcap procps-ng dtkwm
# Grup: sistem

isim=deepin-system-monitor
surum=1.4.8
devir=1
kaynak=(https://github.com/linuxdeepin/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
  [ ! -f /usr/bin/lrelease ] && ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease
  cd deepin-system-monitor-$surum
  rm -r nethogs
  sed -i 's|error("Build nethogs static library failed.")||' deepin-system-monitor.pro

  qmake-qt5 PREFIX=/usr
  make

  make INSTALL_ROOT="$PKG" install
  [ -f /usr/bin/lrelease ] && rm /usr/bin/lrelease
}