void-packages/srcpkgs/NetworkManager-openvpn/template

24 lines
887 B
Bash

# Template file for 'NetworkManager-openvpn'
pkgname=NetworkManager-openvpn
version=1.10.2
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-gtk4"
hostmakedepends="gettext glib-devel pkg-config"
makedepends="gtk+3-devel libglib-devel libnma-devel libsecret-devel gtk4-devel"
depends="openvpn"
short_desc="NetworkManager VPN plugin for OpenVPN"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/NetworkManager"
distfiles="${GNOME_SITE}/NetworkManager-openvpn/${version%.*}/NetworkManager-openvpn-${version}.tar.xz"
checksum=62f0f2a8782221b923f212ac2a8ebbc1002efd6a90ee945dad4adfb56d076d21
system_accounts="_nm_openvpn"
lib32disabled=yes
_nm_openvpn_homedir="/var/empty"
post_extract() {
vsed -i 's/\(#define NM_OPENVPN_\(USER\|GROUP\)\).*/\1 "_nm_openvpn"/' \
shared/nm-service-defines.h
}