summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7ca2dd6972e17dcbfa7f3682ded3895afd5c9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Contributor: exprez135 <exprezdev at pm dot me>

pkgname=protonvpn-cli-ng-git
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/linux-cli"
license=("GPLv3")
depends=("openvpn" "python" "dialog" "python-pythondialog" "python-setuptools" "python-docopt" "python-requests")
replaces=("protonvpn-cli")
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() {
    cd "${_src_name}"

    python setup.py install --optimize=1 --root="${pkgdir}"
    install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}