summaryrefslogtreecommitdiff
path: root/pcr/timekpr
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-21 00:14:13 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-21 00:14:13 +0100
commite68b92523cb65944f49128f1fc0df00cd74458fd (patch)
tree052f8db42e221f381e428f7f10742b966ff4ac00 /pcr/timekpr
parent43d579803456e4d05594ede54ffdb9ce427440b4 (diff)
downloadabslibre-e68b92523cb65944f49128f1fc0df00cd74458fd.tar.gz
abslibre-e68b92523cb65944f49128f1fc0df00cd74458fd.tar.bz2
abslibre-e68b92523cb65944f49128f1fc0df00cd74458fd.zip
pcr/timekpr: rebuilt
Diffstat (limited to 'pcr/timekpr')
-rw-r--r--pcr/timekpr/PKGBUILD127
1 files changed, 67 insertions, 60 deletions
diff --git a/pcr/timekpr/PKGBUILD b/pcr/timekpr/PKGBUILD
index 79934358c..64d19e6e5 100644
--- a/pcr/timekpr/PKGBUILD
+++ b/pcr/timekpr/PKGBUILD
@@ -1,79 +1,86 @@
-# Contributor (Arch): SanskritFritz (gmail)
+# Contributor (AUR): SanskritFritz (gmail)
pkgname=timekpr
pkgver=0.3.2
-pkgrel=9
-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."
-arch=('i686' 'x86_64')
+pkgrel=13
+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=('any')
url=https://launchpad.net/timekpr
license=('GPL')
-depends=('python2')
-source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz
- timekprd.sh
- timekpr.service
- Initializes_lastNotified_before_it_is_used.patch)
+depends=('python2' 'pygtk')
+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'
- 'ab37e469034200c19b46a31d586bfe3e'
- '9e88ee02b5b8cb6b5e0730e3847c4217'
- '23848ef2578571d7dc4871fbd15f41ed')
+sha256sums=('a7b3ad43ea4a50b0ea0d72243338236eac4f8e0da7fb1e432e3c5566343be498'
+ 'deaa76807cffc53885d2de243ff04ccde769540ff46f0c4a51d6168a31d6346d'
+ 'a9d17c6eee925a18c64007d52f212de08d80b20656ffe61d9d269fcb31859c71')
-
-build() {
- cd ${srcdir}/stable/gui/client
+prepare() {
+ cd "$srcdir"/stable/gui/client
# https://bugs.launchpad.net/timekpr/+bug/761647
- patch -p1 < ${srcdir}/Initializes_lastNotified_before_it_is_used.patch
+ 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() {
- install -dm755 $pkgdir/etc/{rc.d,timekpr,logrotate.d,xdg/autostart}
- install -dm755 $pkgdir/usr/{bin,share/{doc/timekpr,timekpr,python-support/timekpr,pixmaps,applications,man/man8}}
- install -dm755 $pkgdir/usr/share/locale/{da,de,fr,hu,nb,sv,fi}/LC_MESSAGES
- install -dm755 $pkgdir/var/lib/timekpr
+ install -dm755 "$pkgdir"/etc/{rc.d,timekpr,logrotate.d,xdg/autostart}
+ install -dm755 "$pkgdir"/usr/{bin,share/{doc/timekpr,timekpr,python-support/timekpr,pixmaps,applications,man/man8}}
+ install -dm755 "$pkgdir"/usr/share/locale/{da,de,fr,hu,nb,sv,fi}/LC_MESSAGES
+ install -dm755 "$pkgdir"/var/lib/timekpr
- cd $srcdir/stable
- install -m644 etc/timekpr.conf $pkgdir/etc/
- install -m644 etc/logrotate.d/timekpr $pkgdir/etc/logrotate.d/
+ cd "$srcdir"/stable
+ install -m644 etc/timekpr.conf "$pkgdir"/etc/
+ install -m644 etc/logrotate.d/timekpr "$pkgdir"/etc/logrotate.d/
sed -i "s/python/python2/" timekpr
- install -m755 timekpr $pkgdir/usr/bin/
+ install -m755 timekpr "$pkgdir"/usr/bin/
sed -i "s/python/python2/" timekpr-gui
- install -m755 timekpr-gui $pkgdir/usr/bin/
+ install -m755 timekpr-gui "$pkgdir"/usr/bin/
sed -i "s/python/python2/" timekpr-client
- install -m755 timekpr-client $pkgdir/usr/bin/
- install -m755 timekprpam.py $pkgdir/usr/share/python-support/timekpr/
- install -m755 timekpr.py $pkgdir/usr/share/python-support/timekpr/
- install -m755 timekpr-gui.py $pkgdir/usr/share/python-support/timekpr/
- install -m755 gui/client/timekpr-client.py $pkgdir/usr/share/python-support/timekpr/
- install -m755 timekprpam.py $pkgdir/usr/share/python-support/timekpr/
- install -m755 timekprcommon.py $pkgdir/usr/share/python-support/timekpr/
- install -m644 gui/padlock-green.png $pkgdir/usr/share/timekpr/
- install -m644 gui/padlock-red.png $pkgdir/usr/share/timekpr/
- install -m644 gui/timekpr.glade $pkgdir/usr/share/timekpr/
- install -m644 gui/timekpr100x100.png $pkgdir/usr/share/timekpr/
- install -m644 gui/timekpr32x32.png $pkgdir/usr/share/timekpr/
- install -m644 gui/timekpr.xpm $pkgdir/usr/share/pixmaps/
- install -m644 debian/timekpr.desktop $pkgdir/usr/share/applications/
- install -m644 debian/timekpr-client.desktop $pkgdir/etc/xdg/autostart
- install -m644 locale/da/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/da/LC_MESSAGES/
- install -m644 locale/de/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/de/LC_MESSAGES/
- install -m644 locale/fr/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/fr/LC_MESSAGES/
- install -m644 locale/hu/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/hu/LC_MESSAGES/
- install -m644 locale/nb/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/nb/LC_MESSAGES/
- install -m644 locale/sv/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/sv/LC_MESSAGES/
- install -m644 locale/fi/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/fi/LC_MESSAGES/
- install -m644 TODO.txt $pkgdir/usr/share/doc/timekpr
- install -m644 README.txt $pkgdir/usr/share/doc/timekpr
- install -m644 COPYRIGHT.txt $pkgdir/usr/share/doc/timekpr
- install -m644 CONTRIBUTORS.txt $pkgdir/usr/share/doc/timekpr
- install -m644 debian/changelog $pkgdir/usr/share/doc/timekpr
- install -m644 doc/timekpr.8 $pkgdir/usr/share/man/man8
-
- install -m755 debian/timekpr.postrm $pkgdir/usr/bin/
- install -m755 debian/timekpr.postinst $pkgdir/usr/bin/
+ install -m755 timekpr-client "$pkgdir"/usr/bin/
+ install -m755 timekprpam.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m755 timekpr.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m755 timekpr-gui.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m755 gui/client/timekpr-client.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m755 timekprpam.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m755 timekprcommon.py "$pkgdir"/usr/share/python-support/timekpr/
+ install -m644 gui/padlock-green.png "$pkgdir"/usr/share/timekpr/
+ install -m644 gui/padlock-red.png "$pkgdir"/usr/share/timekpr/
+ install -m644 gui/timekpr.glade "$pkgdir"/usr/share/timekpr/
+ install -m644 gui/timekpr100x100.png "$pkgdir"/usr/share/timekpr/
+ install -m644 gui/timekpr32x32.png "$pkgdir"/usr/share/timekpr/
+ install -m644 gui/timekpr.xpm "$pkgdir"/usr/share/pixmaps/
+ install -m644 debian/timekpr.desktop "$pkgdir"/usr/share/applications/
+ install -m644 debian/timekpr-client.desktop "$pkgdir"/etc/xdg/autostart
+ install -m644 locale/da/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/da/LC_MESSAGES/
+ install -m644 locale/de/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/de/LC_MESSAGES/
+ install -m644 locale/fr/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/fr/LC_MESSAGES/
+ install -m644 locale/hu/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/hu/LC_MESSAGES/
+ install -m644 locale/nb/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/nb/LC_MESSAGES/
+ install -m644 locale/sv/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/sv/LC_MESSAGES/
+ install -m644 locale/fi/LC_MESSAGES/timekpr.mo "$pkgdir"/usr/share/locale/fi/LC_MESSAGES/
+ install -m644 TODO.txt "$pkgdir"/usr/share/doc/timekpr
+ install -m644 README.txt "$pkgdir"/usr/share/doc/timekpr
+ install -m644 COPYRIGHT.txt "$pkgdir"/usr/share/doc/timekpr
+ install -m644 CONTRIBUTORS.txt "$pkgdir"/usr/share/doc/timekpr
+ install -m644 debian/changelog "$pkgdir"/usr/share/doc/timekpr
+ install -m644 doc/timekpr.8 "$pkgdir"/usr/share/man/man8
- cd $srcdir
- install -m755 timekprd.sh $pkgdir/etc/rc.d/timekprd
+ install -m755 debian/timekpr.postrm "$pkgdir"/usr/bin/
+ install -m755 debian/timekpr.postinst "$pkgdir"/usr/bin/
- install -Dm0644 "${srcdir}/timekpr.service" "${pkgdir}/usr/lib/systemd/system/timekpr.service"
+ install -Dm0644 "$srcdir"/timekpr.service "$pkgdir"/usr/lib/systemd/system/timekpr.service
}