# Template file for 'gufw'
pkgname=gufw
version=24.04
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools python3-distutils-extra intltool"
depends="python3-gobject net-tools ufw gtk+3 libwebkit2gtk41"
short_desc="GTK+ frontend for ufw"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gufw.org/"
distfiles="https://github.com/costales/gufw/archive/refs/tags/$version.tar.gz"
checksum=d8b45c3d3700fcd596af5d4949aa2ee8e7bc4ec4bfa008f31b84568dfa9801eb

pre_configure() {
	vsed -i -e \
		"s|/usr/share/gufw/gufw/gufw.py|/usr/lib/python${py3_ver}/site-packages/gufw/gufw.py|" \
		bin/gufw-pkexec
}
