summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoilrouge2019-11-20 15:56:29 +0100
committerPoilrouge2019-11-20 15:56:29 +0100
commite59a40ec117abb404b675e45e8a56aa982d1635c (patch)
treed21b283738c74e1ca47740f65e51d72a3a6e4a7c
parent01a1c7e4c96cb242ac1844271bfaed5e075c9c33 (diff)
downloadaur-e59a40ec117abb404b675e45e8a56aa982d1635c.tar.gz
Latest version + scripting install + handle removal
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD10
-rw-r--r--gnome-shell-extension-nordvpn-connect-git.install37
3 files changed, 45 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 76c688899f60..ac30b69b4c9e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 42e24d1f417c..e14060434649 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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'"
+}
+