diff options
author | vagnum08 | 2020-11-09 12:38:10 +0000 |
---|---|---|
committer | vagnum08 | 2020-11-09 12:38:22 +0000 |
commit | 14ce7ed954910a417fb26aa447836e35238676e0 (patch) | |
tree | 7e9a4101ccdf19f67f6fc7007641b8ea7e3d8106 | |
parent | e1d7b299e1fd9b63b1615318e9e7f7b3999ac56d (diff) | |
download | aur-14ce7ed954910a417fb26aa447836e35238676e0.tar.gz |
Add post_install hook
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | cpupower_gui.install | 16 |
3 files changed, 20 insertions, 2 deletions
@@ -1,8 +1,9 @@ pkgbase = cpupower-gui pkgdesc = A GUI utility to set CPU frequency limits pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/vagnum08/cpupower-gui + install = cpupower_gui.install arch = any license = GPL makedepends = meson @@ -2,7 +2,7 @@ pkgname=cpupower-gui pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="A GUI utility to set CPU frequency limits" arch=(any) url="https://github.com/vagnum08/cpupower-gui" @@ -15,6 +15,7 @@ optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome' makedepends=('meson' 'desktop-file-utils' 'appstream-glib') provides=("${pkgname}") conflicts=("${pkgname}") +install=cpupower_gui.install source=("${pkgname}_${pkgver}.orig.tar.gz"::"https://github.com/vagnum08/cpupower-gui/archive/v${pkgver}.tar.gz") sha256sums=('09f8b9619e974abe00fc06c0d5528b6a36518f6b283b3db338349bada1d51492') diff --git a/cpupower_gui.install b/cpupower_gui.install new file mode 100644 index 000000000000..b7f62f86cd79 --- /dev/null +++ b/cpupower_gui.install @@ -0,0 +1,16 @@ +post_install() { + # enable daemons + echo ":: Enabling cpupower-gui-helper service" + systemctl --global enable cpupower-gui-helper.service + systemctl --global enable cpupower-gui.service +} + +post_upgrade() { + echo ":: Enabling cpupower-gui-helper service" + systemctl --global enable cpupower-gui-helper.service + systemctl --global enable cpupower-gui.service +} +pre_remove() { + systemctl --global disable cpupower-gui-helper.service + systemctl --global disable cpupower-gui.service +} |