blob: a92f1336ff569cbab753877ec249c47b896d79d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=gufw
pkgver=22.04
pkgrel=1
pkgdesc="GUI for Uncomplicated Firewall"
url="https://gufw.org/"
arch="noarch !riscv64 !s390x" # limited by polkit
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
"
makedepends="
intltool
py3-distutils-extra
"
source="https://github.com/costales/gufw/archive/$pkgver/gufw-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-lang"
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
python3 setup.py build
}
package() {
python3 setup.py install --skip-build --root="$pkgdir" -O1
}
sha512sums="
afddcf8c262666b82e93b9248d30426d86700ba9acbd43fd0dec8b77ccd9d0743ee18259be78c02d8c78300a853c50cfc5ba10a273cf30987744a33ae4920701 gufw-22.04.tar.gz
"
|