From 8d36a77e0ea932063b1d43a5049d810b884cc4cb Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 17 Jan 2026 15:49:52 -0800 Subject: [PATCH] add: proton-vpn (#9277) (#9283) (cherry picked from commit a43a3311e0072b874d5f5e021cd2ff1d11d8d928) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/apps/proton-vpn/anda.hcl | 6 +++ anda/apps/proton-vpn/proton-vpn.spec | 66 ++++++++++++++++++++++++++++ anda/apps/proton-vpn/update.rhai | 1 + 3 files changed, 73 insertions(+) create mode 100644 anda/apps/proton-vpn/anda.hcl create mode 100644 anda/apps/proton-vpn/proton-vpn.spec create mode 100644 anda/apps/proton-vpn/update.rhai diff --git a/anda/apps/proton-vpn/anda.hcl b/anda/apps/proton-vpn/anda.hcl new file mode 100644 index 0000000000..114e0b33a4 --- /dev/null +++ b/anda/apps/proton-vpn/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "proton-vpn.spec" + } +} diff --git a/anda/apps/proton-vpn/proton-vpn.spec b/anda/apps/proton-vpn/proton-vpn.spec new file mode 100644 index 0000000000..fb2085d880 --- /dev/null +++ b/anda/apps/proton-vpn/proton-vpn.spec @@ -0,0 +1,66 @@ +Name: proton-vpn-gtk-app +Version: 4.13.1 +Release: 1%?dist +Summary: Official ProtonVPN Linux app +License: GPL-3.0-only +URL: https://protonvpn.com/download-linux +Source0: https://github.com/ProtonVPN/proton-vpn-gtk-app/archive/refs/tags/v%version.tar.gz +Source1: https://github.com/flathub/com.protonvpn.www/blob/master/com.protonvpn.www.metainfo.xml +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-build +BuildRequires: python3-wheel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-gobject +BuildRequires: python3-dbus +BuildRequires: python3-packaging +BuildRequires: gtk3 +BuildRequires: libnotify +BuildRequires: python3-proton-vpn-api-core +BuildRequires: librsvg2 + +Requires: gtk3 +Requires: libnotify +Requires: python3-gobject +Requires: python3-dbus +Requires: python3-packaging +Requires: python3-proton-vpn-api-core +Requires: librsvg2 + +Provides: protonvpn +Provides: proton-vpn + +Packager: Owen Zimmerman + +%description +The Proton VPN GTK app is intended for every Proton VPN service user, +it provides full access to all functionalities available to authenticated users, +with the user signup process handled on the website. + +%prep +%autosetup -n %{name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files proton +install -Dm644 rpmbuild/SOURCES/proton-vpn-logo.svg %{buildroot}%{_scalableiconsdir}/proton-vpn-logo.svg +install -Dm644 %{SOURCE1} %{buildroot}%{_metainfodir}/com.protonvpn.www.metainfo.xml +# Match metainfo +install -Dm644 rpmbuild/SOURCES/proton.vpn.app.gtk.desktop %{buildroot}%{_appsdir}/com.protonvpn.www.desktop + +%files -f %{pyproject_files} +%doc README.md CONTRIBUTING.md CODEOWNERS +%license LICENSE COPYING.md +%{_bindir}/protonvpn-app +%{_appsdir}/com.protonvpn.www.desktop +%{_scalableiconsdir}/proton-vpn-logo.svg +%{_metainfodir}/com.protonvpn.www.metainfo.xml + +%changelog +* Sat Jan 17 2026 Owen Zimmerman +- Initial commit diff --git a/anda/apps/proton-vpn/update.rhai b/anda/apps/proton-vpn/update.rhai new file mode 100644 index 0000000000..d6fe8c6a5d --- /dev/null +++ b/anda/apps/proton-vpn/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("ProtonVPN/proton-vpn-gtk-app"));