summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f59b6997854a02f389e0b47508f3f3b4e8ac179 (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
# Maintainer: exprez135 <exprez135 at latour dot 33mail dot com>

pkgname=protonvpn-cli-ng
pkgver=2.1.2
pkgrel=1
pkgdesc="ProtonVPN CLI tool for protonvpn.com"
arch=("any")
url="https://github.com/ProtonVPN/protonvpn-cli-ng"
license=("GPLv3")
depends=("openvpn" "python3" "dialog")
makedepends=("git")
replaces=("protonvpn-cli")
source=("git+https://github.com/ProtonVPN/protonvpn-cli-ng.git")
md5sums=("SKIP")

_protonvpn_src_dir="protonvpn-cli-ng"

package() {
    # Define paths
    _protonvpn_src_dir="${srcdir}/${_protonvpn_src_dir}"
  
    # Install protonvpn-cli-ng package
    cd "${_protonvpn_src_dir}"
    python setup.py install --optimize=1 --root="$pkgdir" 

    install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}