summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD16
-rw-r--r--whatpulse.changelog (renamed from .Changelog)0
3 files changed, 17 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 32322447ee94..51e31e67cb53 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
# Generated by mksrcinfo v8
-# Sat Jul 2 22:04:06 UTC 2016
+# Sat Jul 2 22:30:22 UTC 2016
pkgbase = whatpulse
pkgdesc = Measures your keyboard, mouse and application usage, network traffic and uptime.
pkgver = 2.7.1
- pkgrel = 1
+ pkgrel = 2
url = http://www.whatpulse.org
install = whatpulse.install
+ changelog = whatpulse.changelog
arch = i686
arch = x86_64
license = custom:whatpulse_tos
diff --git a/PKGBUILD b/PKGBUILD
index 8b384e196ede..19811b909c69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,12 +5,13 @@
pkgname=whatpulse
pkgver=2.7.1
-pkgrel=1
+pkgrel=2
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=(
@@ -24,6 +25,14 @@ sha256sums=('9ad42960f0a8b538f1d98fea1ced9b2a97ef59aadca50d0382efdb71434572b7')
sha256sums_i686=('1662da8504d03bc14e7195087f5989e6657ad3de2a226f9e0248e0bb49bc83d5')
sha256sums_x86_64=('c7e9090866e115486b56a2dc47f920be40354fe6680af0646f3355d9cd8167d2')
+build() {
+ # Extract the tiny, tiny bit of license/usage information that exists
+ # in this piece of software distribution.
+ ls
+ ls $srcdir
+ sed -n '/By installing/,/ any way./p' README.txt > LICENSE
+}
+
package() {
cd $srcdir/
# Install the binary
@@ -32,9 +41,12 @@ package() {
# 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
}
diff --git a/.Changelog b/whatpulse.changelog
index 8f620f76e310..8f620f76e310 100644
--- a/.Changelog
+++ b/whatpulse.changelog