# Maintainer: Martin Kostolný pkgname=plasma5-applets-network-monitor-git _pkgname=plasma5-applets-network-monitor _gitpkgname=plasma-applet-network-monitor pkgver=r32.548e998 pkgrel=1 pkgdesc="Plasmoid for Plasma 5. Shows network speed of currently active connections." arch=('any') url="https://github.com/kotelnik/$_gitpkgname" license=('GPL') depends=('plasma-workspace' 'qt5-graphicaleffects' 'plasma-nm') makedepends=('git' 'extra-cmake-modules') conflicts=("${_pkgname-*}" 'plasma-applet-network-monitor-git') provides=("${_pkgname-*}") source=("git://github.com/kotelnik/$_gitpkgname.git") md5sums=('SKIP') pkgver() { cd "${_gitpkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${_gitpkgname}" mkdir -p build cd build rm -rf * cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_INSTALL_DIR=lib \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON } package() { cd "${_gitpkgname}"/build make install DESTDIR="${pkgdir}" }