mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=dnetstats
|
|
pkgver=1.2.6
|
|
pkgrel=2
|
|
pkgdesc="Graphic monitor for the network. Show the network stats and the netmap"
|
|
arch=('i686' 'x86_64')
|
|
url="http://checkppp.weebly.com/index.html"
|
|
license=('GPL')
|
|
depends=('qt')
|
|
makedepends=('automoc4')
|
|
categories=('network')
|
|
source=("http://dnetstats.co.cc/downloads/DNetStats-v${pkgver}-release.tar.bz2"
|
|
dnetstats.desktop)
|
|
md5sums=('cd26a2af746019ddaef472607c3b6550'
|
|
'4bb4b396ef1515700620f213d3f50b43')
|
|
|
|
build() {
|
|
|
|
cd $srcdir/DNetStats-v${pkgver}-release
|
|
|
|
/usr/bin/moc src/dialogimpl.h -o moc_dialogimpl.cpp
|
|
/usr/bin/moc thread.h -o moc_thread.cpp
|
|
/usr/bin/moc shutthread.h -o moc_shutthread.cpp
|
|
/usr/bin/moc netthread.h -o moc_netthread.cpp
|
|
|
|
qmake || return 1
|
|
make || return 1
|
|
|
|
install -Dm755 mythread ${pkgdir}/usr/bin/dnetstats || return 1
|
|
install -Dm644 ../dnetstats.desktop ${pkgdir}/usr/share/applications/dnetstats.desktop|| return 1
|
|
install -Dm644 resource/wp.png ${pkgdir}/usr/share/pixmaps/wp.png || return 1
|
|
|
|
}
|