summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanskritFritz2016-06-21 10:38:43 +0200
committerSanskritFritz2016-06-21 10:38:43 +0200
commit5218d0bbf15b04e6b3a57be0be6e8ff1e9a952d6 (patch)
treecce5dc579f8b615516d2a4d60239a47498fec645
parent6c087dc8b6eb074fe1073f8aa69c7c41837ba5be (diff)
downloadaur-5218d0bbf15b04e6b3a57be0be6e8ff1e9a952d6.tar.gz
Post install not interactive anymore. I simply search for kdesu/gksu etc now.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD25
-rw-r--r--timekpr.install4
3 files changed, 26 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 821c23a49b8..0e839fab63f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,18 @@
+# Generated by mksrcinfo v8
+# Tue Jun 21 08:34:49 UTC 2016
pkgbase = timekpr
- pkgdesc = Control the computer usage of your user accounts. You can limit their daily usage based on a timed access duration and configure periods of day when they can log in.
+ pkgdesc = Control the computer usage of your users. You can limit daily usage based on a timed access duration and configure periods of day when they can log in.
pkgver = 0.3.2
- pkgrel = 11
+ pkgrel = 12
url = https://launchpad.net/timekpr
install = timekpr.install
arch = i686
arch = x86_64
license = GPL
depends = python2
+ optdepends = gksu: run with root privileges
+ optdepends = kdesu: run with root privileges
+ optdepends = kdesudo: run with root privileges
backup = etc/timekpr.conf
source = http://launchpad.net/timekpr/trunk/0.3.2/+download/timekpr_0.3.2~ppa1~ubuntu2.tar.gz
source = timekpr.service
diff --git a/PKGBUILD b/PKGBUILD
index 6355f077475..e06470ff592 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,25 +2,38 @@
pkgname=timekpr
pkgver=0.3.2
-pkgrel=11
-pkgdesc="Control the computer usage of your user accounts. You can limit their daily usage based on a timed access duration and configure periods of day when they can log in."
+pkgrel=12
+pkgdesc="Control the computer usage of your users. You can limit daily usage based on a timed access duration and configure periods of day when they can log in."
arch=('i686' 'x86_64')
url=https://launchpad.net/timekpr
license=('GPL')
depends=('python2')
-source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz
- timekpr.service
- Initializes_lastNotified_before_it_is_used.patch)
+optdepends=('gksu: run with root privileges'
+ 'kdesu: run with root privileges'
+ 'kdesudo: run with root privileges')
+source=("http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz"
+ "timekpr.service"
+ "Initializes_lastNotified_before_it_is_used.patch")
backup=('etc/timekpr.conf')
install='timekpr.install'
md5sums=('0626ee6b6b6d218dfdd6e79331f789a2'
'9e88ee02b5b8cb6b5e0730e3847c4217'
'23848ef2578571d7dc4871fbd15f41ed')
-build() {
+prepare() {
cd "$srcdir"/stable/gui/client
# https://bugs.launchpad.net/timekpr/+bug/761647
patch -p1 < "$srcdir"/Initializes_lastNotified_before_it_is_used.patch
+
+ for su_cmd in "/usr/bin/kdesudo" "/usr/bin/kdesu"
+ do
+ if [ -f $su_cmd ];
+ then
+ # Prefer KDE su over GTK one:
+ sed -i "s#gksu#$su_cmd#" "$srcdir/stable/debian/timekpr.desktop"
+ break
+ fi
+ done
}
package() {
diff --git a/timekpr.install b/timekpr.install
index f184647f453..e02d7f55bf5 100644
--- a/timekpr.install
+++ b/timekpr.install
@@ -1,10 +1,6 @@
post_install() {
/usr/bin/timekpr.postinst
-
- echo "Your su command (gksu|gksudo|kdesu|kdesudo etc) for starting timekpr-gui as root: "
- read su_command;
- sed -i "s/gksu/${su_command}/" "/usr/share/applications/timekpr.desktop"
}
post_upgrade() {