summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-06-12 16:37:49 +0300
committerDimitris Kiziridis2020-06-12 16:37:49 +0300
commita9bd81e74498c7152d024889bd825c715371e4da (patch)
treeca00ae9590a818f0c16ce9458052362ddc813b6e
parentf6a08c3f528466f767e99a7a8b167344ba9b3598 (diff)
downloadaur-a9bd81e74498c7152d024889bd825c715371e4da.tar.gz
Enable Upower after install
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD8
-rw-r--r--powerkit.install11
4 files changed, 19 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aab3b91b455..5318c02edbf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = powerkit
pkgdesc = A Lightweight Desktop Independent full featured power manager
pkgver = 1.0.0
- pkgrel = 7
+ pkgrel = 8
url = https://github.com/rodlie/powerkit
+ install = powerkit.install
arch = x86_64
license = BSD
makedepends = xorg-xrandr
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 4dab8d6386e..00000000000
--- a/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-# Ignore everything
-*
-
-# But not these files...
-!.gitignore
-!PKGBUILD
-!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index fdc46a7a66c..2b2644fd602 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,16 @@
pkgname=powerkit
pkgver=1.0.0
-pkgrel=7
+pkgrel=8
pkgdesc='A Lightweight Desktop Independent full featured power manager'
arch=('x86_64')
url='https://github.com/rodlie/powerkit'
license=('BSD')
-depends=('xscreensaver' 'upower' 'qt5-base' 'libxss')
+install='powerkit.install'
+depends=('xscreensaver'
+ 'upower'
+ 'qt5-base'
+ 'libxss')
makedepends=('xorg-xrandr' 'qt5-base')
optdepends=('adwaita-icon-theme')
source=("${pkgname}-${pkgver}.tar.xz::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
diff --git a/powerkit.install b/powerkit.install
new file mode 100644
index 00000000000..c84943237f7
--- /dev/null
+++ b/powerkit.install
@@ -0,0 +1,11 @@
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+
+post_install() {
+ echo "Enabling Upower service"
+ sudo systemctl enable upower.service
+}
+
+pre_remove() {
+ echo "Disabling Upower service"
+ sudo systemctl disable upower.service
+} \ No newline at end of file