void-packages/srcpkgs/python3-eduvpn-client/template

47 lines
1.7 KiB
Bash

# Template file for 'python3-eduvpn-client'
pkgname=python3-eduvpn-client
version=4.4.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="eduvpn-common python3-gobject NetworkManager-openvpn"
checkdepends="${depends} python3-pytest python3-pycodestyle"
short_desc="Linux client and Python client API for eduVPN"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://www.eduvpn.org/"
distfiles="https://github.com/eduvpn/python-eduvpn-client/releases/download/${version}/python-eduvpn-client-${version}.tar.xz"
checksum=2074488ebc8021e19c16acf904c5ac134fe00a56929a7c168637357f573af6f9
post_install() {
mv ${DESTDIR}/${py3_sitelib}/eduvpn/data/share \
${DESTDIR}/usr/share
}
eduvpn-client_package() {
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/icons/hicolor/48x48/apps/org.eduvpn.client.png
vmove usr/share/icons/hicolor/128x128/apps/org.eduvpn.client.png
vmove usr/share/icons/hicolor/256x256/apps/org.eduvpn.client.png
vmove usr/share/icons/hicolor/512x512/apps/org.eduvpn.client.png
vmove usr/bin/eduvpn-cli
vmove usr/bin/eduvpn-gui
vmove usr/share/applications/org.eduvpn.client.desktop
}
}
letsconnect-client_package() {
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/letsconnect
vmove usr/share/icons/hicolor/48x48/apps/org.letsconnect-vpn.client.png
vmove usr/share/icons/hicolor/128x128/apps/org.letsconnect-vpn.client.png
vmove usr/share/icons/hicolor/256x256/apps/org.letsconnect-vpn.client.png
vmove usr/share/icons/hicolor/512x512/apps/org.letsconnect-vpn.client.png
vmove usr/bin/letsconnect-cli
vmove usr/bin/letsconnect-gui
vmove usr/share/applications/org.letsconnect-vpn.client.desktop
}
}