diff options
author | Poilrouge | 2019-11-20 15:56:29 +0100 |
---|---|---|
committer | Poilrouge | 2019-11-20 15:56:29 +0100 |
commit | e59a40ec117abb404b675e45e8a56aa982d1635c (patch) | |
tree | d21b283738c74e1ca47740f65e51d72a3a6e4a7c | |
parent | 01a1c7e4c96cb242ac1844271bfaed5e075c9c33 (diff) | |
download | aur-e59a40ec117abb404b675e45e8a56aa982d1635c.tar.gz |
Latest version + scripting install + handle removal
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | gnome-shell-extension-nordvpn-connect-git.install | 37 |
3 files changed, 45 insertions, 7 deletions
@@ -1,8 +1,9 @@ pkgbase = gnome-shell-extension-nordvpn-connect-git pkgdesc = Unofficial Gnome-Shell Extension to provide a GUI for the official NordVPN CLI Tool. - pkgver = r114.7916195 - pkgrel = 2 + pkgver = r143.b009a83 + pkgrel = 1 url = https://github.com/AlexPoilrouge/NordVPN-connect + install = gnome-shell-extension-nordvpn-connect-git.install arch = any license = GPL3 makedepends = git @@ -1,14 +1,15 @@ # Maintainer: Hurstel Alexandre <a.hurstel at unistra dot fr> _pkgname=NordVPN-Connect pkgname=gnome-shell-extension-nordvpn-connect-git -pkgver=r114.7916195 -pkgrel=2 +pkgver=r143.b009a83 +pkgrel=1 pkgdesc="Unofficial Gnome-Shell Extension to provide a GUI for the official NordVPN CLI Tool." arch=('any') url="https://github.com/AlexPoilrouge/NordVPN-connect" license=('GPL3') depends=('gnome-shell>=3.34' 'nordvpn-bin>=3.3' 'systemd') makedepends=('git') +install=gnome-shell-extension-nordvpn-connect-git.install source=( "git://github.com/AlexPoilrouge/NordVPN-connect.git" ) @@ -16,9 +17,8 @@ source=( package() { cd NordVPN-connect - mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/NordVPN_Connect@poilrouge.fr" - cp -r ./* "$pkgdir/usr/share/gnome-shell/extensions/NordVPN_Connect@poilrouge.fr" - + mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/" + ./setup.sh --no-extension-mode --gitless --directory "$pkgdir/usr/share/gnome-shell/extensions/" } md5sums=('SKIP') diff --git a/gnome-shell-extension-nordvpn-connect-git.install b/gnome-shell-extension-nordvpn-connect-git.install new file mode 100644 index 000000000000..7e6157b03248 --- /dev/null +++ b/gnome-shell-extension-nordvpn-connect-git.install @@ -0,0 +1,37 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +## arg 1: the new package version +#pre_install() { + # do something here +#} + +## arg 1: the new package version +post_install() { + echo "After the 'NordVPN_Connect' extension installation, you'll need to enable this extension manually ( gnome-extension website, 'gnome-shell-extension-prefs', 'gnome-extension enable NordVPN_Connect@poilrouge.fr', … )." + echo "Also, you might need to refresh your gnome-shell by hitting the 'Alt+F2' hotkey and entering 'r'" +} + +## arg 1: the new package version +## arg 2: the old package version +#pre_upgrade() { + # do something here +#} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + echo "After the 'NordVPN_Connect' upgrade you might need to refresh your gnome-shell by hitting the 'Alt+F2' hotkey and entering 'r'" +} + +## arg 1: the old package version +pre_remove() { + /usr/share/gnome-shell/extensions/NordVPN_Connect@poilrouge.fr/setup.sh --system --gitless clean +} + +## arg 1: the old package version +post_remove() { + echo "After the 'NordVPN_Connect' removal you might need to refresh your gnome-shell by hitting the 'Alt+F2' hotkey and entering 'r'" +} + |