summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff7edbd28fcb2b9188042d9dcf00970f95fa1c61 (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
# Maintainer: Nate Ijams ~ exprez135 <sbk at sbk dot sh> 

pkgname=protonvpn-cli-ng
pkgver=2.2.11
pkgrel=1
pkgdesc="A Community Linux CLI for ProtonVPN."
arch=("any")
url="https://github.com/ProtonVPN/linux-cli-community"
license=("GPLv3")
depends=("openvpn" "python" "dialog" "python-pythondialog" "python-setuptools"
	"python-docopt" "python-requests" "python-jinja" "python-distro")
conflicts=("protonvpn-cli")
source=("https://github.com/ProtonVPN/linux-cli-community/archive/v${pkgver}.tar.gz")
source=("linux-cli-community-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2fc643762e9156928b706c31a7826427a7ca12c7ae4cdfb656746cd2de3af66b')

_protonvpn_src_dir="linux-cli-community-${pkgver}"

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"

}