PKGBUILDS/protonvpn-gui/PKGBUILD
2022-02-07 10:59:15 -06:00

31 lines
1.1 KiB
Bash

#Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=protonvpn-gui
_gitpkgname=linux-app
pkgver=1.7.0
pkgrel=1
pkgdesc="Official ProtonVPN Graphical User Interface, maintained by the ProtonVPN team."
arch=("any")
url="https://github.com/ProtonVPN/"
license=("GPL3")
groups=("ProtonVPN")
depends=("python-protonvpn-nm-lib" "python-gobject" "python-psutil" "gtk3" "python-cairo" "webkit2gtk")
optdepends=("libappindicator-gtk3")
makedepends=("python-setuptools")
source=("https://github.com/ProtonVPN/linux-app/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('59115d756c007c94dc5c498b726576ec2b4db4149abbe17c546dc7cee7f57286')
build() {
cd "$_gitpkgname-$pkgver"
python setup.py build
}
package() {
cd "$_gitpkgname-$pkgver"
install -d -m755 "${pkgdir}/usr/share/applications"
install -d -m755 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
cp protonvpn.desktop "${pkgdir}/usr/share/applications/protonvpn.desktop"
cp ./protonvpn_gui/assets/icons/protonvpn-logo.png "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
python setup.py install --root="$pkgdir" --optimize=1
}