mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 03:47:16 +02:00
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
# Contributor: Thomas Kienlen <kommander@laposte.net>
|
|
# Maintainer: Thomas Kienlen <kommander@laposte.net>
|
|
pkgname=gufw
|
|
pkgver=24.04
|
|
pkgrel=3
|
|
pkgdesc="GUI for Uncomplicated Firewall"
|
|
url="https://costales.github.io/projects/gufw/"
|
|
arch="noarch"
|
|
options="!check" # no test suite
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
desktop-file-utils
|
|
gtk-update-icon-cache
|
|
polkit
|
|
py3-gobject3
|
|
python3
|
|
ufw
|
|
webkit2gtk-4.1
|
|
"
|
|
makedepends="
|
|
intltool
|
|
py3-distutils-extra
|
|
py3-setuptools
|
|
py3-gpep517
|
|
"
|
|
source="https://github.com/costales/gufw/archive/$pkgver/gufw-$pkgver.tar.gz
|
|
install-dir.patch
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
|
|
|
|
build() {
|
|
local PYTHONVERSION="$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
|
|
sed \
|
|
-e 's|/usr/share/gufw/gufw/gufw.py $1|/usr/lib/python'"$PYTHONVERSION"'/site-packages/gufw/gufw.py "$@"|' \
|
|
-e 's|/bin/bash|/bin/sh|' \
|
|
-i bin/gufw-pkexec
|
|
sed \
|
|
's|/bin/bash|/bin/sh|' \
|
|
-i bin/gufw
|
|
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
mv "$pkgdir"/usr/lib/python3*/site-packages/etc "$pkgdir"/
|
|
}
|
|
|
|
sha512sums="
|
|
c9b9d86c35ab574e6e93f3dc62fc1875c33b371c397ab7032e07935db7d594c7e0af37789678007b848ff83a5d1d69724c728687c0c36a4c890aaf56420c2228 gufw-24.04.tar.gz
|
|
633fc60af2033da3d143425d9faeaba66d661b59c53f486b147d397b0fcb6eed06c92e39a180fce807e02cfd506b37b0438e3e30b2bd2e497a138fcf5f14dda7 install-dir.patch
|
|
"
|