summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aefdebc0c77f5df3a1e2753d1bae0498edbb1ecb (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Ali Molaei <ali dot molaei at protonmail dot com>

pkgname=proton-vpn-gtk-app
pkgver=4.3.3
pkgrel=1
pkgdesc="ProtonVPN GTK app, Maintained by Community"
arch=("any")
url="https://github.com/ProtonVPN/proton-vpn-gtk-app"
license=("GPL3")
groups=("ProtonVPN")
depends=("python-proton-core"
		"python-proton-vpn-api-core"
		"python-proton-vpn-connection" 
		"python-proton-keyring-linux"
		"python-proton-keyring-linux-secretservice"
		"python-proton-vpn-logger"
		"python-proton-vpn-network-manager"
		"python-proton-vpn-network-manager-openvpn"
		"python-proton-vpn-killswitch"
		"python-proton-vpn-killswitch-network-manager"
		"python-aiohttp"
		"python-bcrypt"
		"python-cairo"
		"python-distro"
		"python-gnupg"
		"python-gobject"
		"python-jinja"
		"python-requests"
		"python-packaging"
		"python-pynacl"
		"python-pyopenssl"
		"python-sentry_sdk"
		"webkit2gtk"
		"dbus-python"
		"gtk3")
optdepends=("libappindicator-gtk3")
makedepends=("git" "python-setuptools")
source=("git+https://github.com/ProtonVPN/proton-vpn-gtk-app.git#tag=v${pkgver}")
sha256sums=('SKIP')
conflicts=('protonvpn-gui' 'python-proton-client')

build() {
	cd "$pkgname"
	python setup.py build
}

package() {
	cd "$pkgname"
	install -d -m755 "${pkgdir}/usr/share/applications"
	install -d -m755 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"

	cp ./rpmbuild/SOURCES/protonvpn-app.desktop "${pkgdir}/usr/share/applications/protonvpn.desktop"
	cp ./rpmbuild/SOURCES/proton-vpn-logo.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
	
	python setup.py install --root="$pkgdir" --optimize=1
	
	echo "Cleaning version.py and versions.yml copied by mistake by setup.py"
	rm "${pkgdir}/usr/version.py"
	rm "${pkgdir}/usr/versions.yml"
}