1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor : Martin Wimpress <code@flexion.org>
7 pkgdesc='Uncomplicated way to manage your Linux firewall'
8 url='https://gufw.org/'
11 depends=('gtk3' 'polkit' 'python' 'python-gobject' 'ufw' 'webkit2gtk'
12 'desktop-file-utils' 'gtk-update-icon-cache')
13 makedepends=('intltool' 'python-distutils-extra')
14 source=(https://github.com/costales/gufw/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
15 sha512sums=('afddcf8c262666b82e93b9248d30426d86700ba9acbd43fd0dec8b77ccd9d0743ee18259be78c02d8c78300a853c50cfc5ba10a273cf30987744a33ae4920701')
16 b2sums=('069ab44211c029ff2c646d4eceb6dc06c62f71db3b0ff0a8e0df459f1070e5b554278ad25d191d71c4059f1a808925a871b03a37affea6f8c230caf878da854c')
19 cd ${pkgname}-${pkgver}
20 local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
21 sed 's|/usr/share/gufw/gufw/gufw.py $1|/usr/lib/python'"${PYTHONVERSION}"'/site-packages/gufw/gufw.py "$@"|' -i bin/gufw-pkexec
25 cd ${pkgname}-${pkgver}
30 cd ${pkgname}-${pkgver}
31 # required so desktop, icon and translation files get installed
32 export XDG_RUNTIME_DIR="$(mktemp -d --tmpdir gufw-build-XXXXXXXXX)"
33 python setup.py install --prefix=/usr --root="${pkgdir}" -O1