summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanskritFritz2019-09-09 22:00:54 +0200
committerSanskritFritz2019-09-09 22:00:54 +0200
commit988a2831cea0eba98c974b6999fba00e0c814691 (patch)
tree420f9b301e3c9e26fe12cb5931c7797ae0c6c49d
downloadaur-988a2831cea0eba98c974b6999fba00e0c814691.tar.gz
Timekpr-next stable AUR package first commit.
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD42
-rw-r--r--timekpr-next.install12
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d464f97a599
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = timekpr-next
+ pkgdesc = Control the computer usage of users. You can limit daily usage based on a timed access duration and configure periods of day when they can log in.
+ pkgver = 0.2.7
+ pkgrel = 1
+ url = https://launchpad.net/timekpr-next
+ install = timekpr-next.install
+ arch = any
+ license = GPL
+ depends = python-gobject
+ depends = gtk3>=3.4
+ depends = polkit
+ depends = python-dbus
+ depends = python-gobject
+ depends = libappindicator3
+ depends = dbus>=1.10.1
+ depends = python-psutil
+ optdepends = lxqt-policykit: to start the Control Panel like in LXQT
+ optdepends = mate-polkit: to start the Control Panel like in Mate
+ optdepends = polkit-kde-agent: to start the Control Panel like in Plasma
+ optdepends = polkit-gnome: to start the Control Panel like in Gnome (legacy)
+ optdepends = xfce-polkit: to start the Control Panel like in XFCE
+ provides = timekpr
+ conflicts = timekpr
+ conflicts = timekpr-next-beta
+ conflicts = timekpr-beta
+ conflicts = timekpr-revived-bzr
+ conflicts = timekpr-next-git
+ source = https://launchpad.net/timekpr-next/stable/0.2.7/+download/timekpr-next-0.2.7.tar.gz
+ md5sums = 24dbbc25c5c177a65e4335855795976a
+
+pkgname = timekpr-next
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..912132ad4fd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: SanskritFritz (gmail)
+
+_pkgname=timekpr
+pkgname=$_pkgname-next
+pkgver=0.2.7
+pkgrel=1
+pkgdesc="Control the computer usage of 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-next'
+license=('GPL')
+depends=('python-gobject' 'gtk3>=3.4' 'polkit' 'python-dbus' 'python-gobject' 'libappindicator3' 'dbus>=1.10.1' 'python-psutil')
+optdepends=('lxqt-policykit: to start the Control Panel like in LXQT'
+ 'mate-polkit: to start the Control Panel like in Mate'
+ 'polkit-kde-agent: to start the Control Panel like in Plasma'
+ 'polkit-gnome: to start the Control Panel like in Gnome (legacy)'
+ 'xfce-polkit: to start the Control Panel like in XFCE')
+provides=('timekpr')
+conflicts=('timekpr' 'timekpr-next-beta' 'timekpr-beta' 'timekpr-revived-bzr' 'timekpr-next-git')
+source=("https://launchpad.net/timekpr-next/stable/$pkgver/+download/timekpr-next-0.2.7.tar.gz")
+install='timekpr-next.install'
+md5sums=('24dbbc25c5c177a65e4335855795976a')
+
+package() {
+ cd "$pkgname"
+
+ cat debian/install | while read a b; do
+ case "$a" in
+ *"#"*) ;;
+ "") ;;
+ *)
+ f=`basename "$a"`
+ if [ -d $a ]; then
+ install -d "$pkgdir/$b/$f"
+ else
+ install -D "$a" "$pkgdir/$b/$f"
+ fi
+ esac
+ done
+ install -m755 debian/postrm "$pkgdir"/usr/bin/timekpr.postrm
+ install -m755 debian/postinst "$pkgdir"/usr/bin/timekpr.postinst
+
+}
diff --git a/timekpr-next.install b/timekpr-next.install
new file mode 100644
index 00000000000..0471e443267
--- /dev/null
+++ b/timekpr-next.install
@@ -0,0 +1,12 @@
+
+post_install() {
+ /usr/bin/timekpr.postinst
+}
+
+post_upgrade() {
+ /usr/bin/timekpr.postinst
+}
+
+pre_remove() {
+ /usr/bin/timekpr.postrm purge
+}