# Maintainer: Thor K. H. # Contributor: Tim Besard # Contributor: Jelle van der Waa # Contributor: Pieter Kokx pkgname=whatpulse pkgver=2.8.2 pkgrel=1 pkgdesc="Measures your keyboard, mouse and application usage, network traffic and uptime." arch=('i686' 'x86_64') url=http://www.whatpulse.org # I have yet to find the actual licence, but alternatively: it's basically freeware license=(custom:whatpulse_tos) changelog="$pkgname.changelog" install="$pkgname.install" depends=(qt4) optdepends=( 'libpcap: for capturing network statistics' ) source=('whatpulse.desktop') source_i686=("http://static.whatpulse.org/files/whatpulse-linux-ubuntu-32bit-$pkgver.tar.gz") source_x86_64=("http://static.whatpulse.org/files/whatpulse-linux-ubuntu-64bit-$pkgver.tar.gz") sha256sums=('aba7e6b28ccebdb6115245dae1a7ca8e88afa2ecb1619037b66f65090a284363') sha256sums_i686=('b3aa6ad72e87792eb2119e8b508ff791a7985f9a31ec4a38419678bebb6b20c6') sha256sums_x86_64=('593a6e606c76c1d8df79770019a0f085e4cc74c742834e77dee565f5d71da93c') build() { # Extract the tiny, tiny bit of license/usage information that exists # in this piece of software distribution. sed -n '/By installing/,/ any way./p' README.txt > LICENSE } package() { cd $srcdir/ # Install the binary mkdir -p ${pkgdir}/usr/bin install -m0755 whatpulse ${pkgdir}/usr/bin/ # Install the freedesktop shortcut mkdir -p ${pkgdir}/usr/share/applications install -m0644 whatpulse.desktop ${pkgdir}/usr/share/applications/ # Install the input rules mkdir -p ${pkgdir}/etc/udev/rules.d/ cat >${pkgdir}/etc/udev/rules.d/99-whatpulse-input.rules <<__EOF__ KERNEL=="event*", NAME="input/%k", MODE="640", GROUP="input" __EOF__ # Install the license install -Dm0755 LICENSE ${pkgdir}/usr/share/licenses/whatpulse/LICENSE }