summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYurii Kolesnykov2020-04-29 23:58:56 +0300
committerYurii Kolesnykov2020-04-29 23:58:56 +0300
commit4b7a60650da50e5d5e5868fe27f701876860d288 (patch)
tree3c946e2e6f6471a59a290f4d507d3a5182e2736e
parentbc6518f3a4de31f791be712256eae26c8f812c98 (diff)
downloadaur-4b7a60650da50e5d5e5868fe27f701876860d288.tar.gz
add forgotter pkgver function, update url
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD23
2 files changed, 15 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index b18e875031f..84085c73f1c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
+linux-cli
src/
pkg/
*.pkg.*
-protonvpn-cli-ng/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 6103ea78fe7..f7ca2dd6972 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,24 +2,29 @@
# Contributor: exprez135 <exprezdev at pm dot me>
pkgname=protonvpn-cli-ng-git
-_src_name=protonvpn-cli-ng
-pkgver=2.2.1
+product=protonvpn-cli-ng
+pkgver=2.2.2.r0.ga5f1c61
pkgrel=1
pkgdesc="ProtonVPN CLI tool for protonvpn.com"
arch=("any")
-url="https://github.com/ProtonVPN/protonvpn-cli-ng"
+url="https://github.com/ProtonVPN/linux-cli"
license=("GPLv3")
depends=("openvpn" "python" "dialog" "python-pythondialog" "python-setuptools" "python-docopt" "python-requests")
replaces=("protonvpn-cli")
-conflicts=("${_src_name}")
-provides=("${_src_name}")
-source=("git+https://github.com/ProtonVPN/protonvpn-cli-ng")
-md5sums=("SKIP")
+conflicts=("${product}")
+provides=("${product}")
+_src_name=linux-cli
+source=("git+${url}")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "${_src_name}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
package() {
- # Install protonvpn-cli-ng package
cd "${_src_name}"
- python setup.py install --optimize=1 --root="$pkgdir"
+ python setup.py install --optimize=1 --root="${pkgdir}"
install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}