[arch-commits] Commit in gufw/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Sep 23 17:00:50 UTC 2018


    Date: Sunday, September 23, 2018 @ 17:00:50
  Author: anthraxx
Revision: 384227

upgpkg: gufw 18.10.0-1

Modified:
  gufw/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-23 16:04:00 UTC (rev 384226)
+++ PKGBUILD	2018-09-23 17:00:50 UTC (rev 384227)
@@ -2,26 +2,28 @@
 # Contributor : Martin Wimpress <code at flexion.org>
 
 pkgname=gufw
-_pkgver=18.04
+_pkgver=18.10
 pkgver=${_pkgver}.0
-pkgrel=2
+pkgrel=1
 pkgdesc='Uncomplicated way to manage your Linux firewall'
 url='https://gufw.org/'
 arch=('any')
 license=('GPL3')
-depends=('gtk3' 'polkit' 'python-gobject' 'ufw' 'webkit2gtk' 'desktop-file-utils' 'gtk-update-icon-cache')
+depends=('gtk3' 'polkit' 'python' 'python-gobject' 'ufw' 'webkit2gtk' 'desktop-file-utils' 'gtk-update-icon-cache')
 makedepends=('intltool' 'python-distutils-extra')
 source=(https://launchpad.net/gui-ufw/trunk/${_pkgver}/+download/gui-ufw-${pkgver}.tar.gz)
-sha256sums=('b6b12524d3d2c6035288f15003c97aa23eef862fdaa78fb621e045cd793374fc')
-sha512sums=('86154bd802e87ecd4bb6cfe74ae50d716d96bf33ca21847d439f602a4d318f7fcfa1f8a7222567ba194dba479f217842be7f1538ad725256458ebc428a33e831')
+sha256sums=('c44468550cbcb35ebee0dd8339341447118811ccd0714e79350136117421b93b')
+sha512sums=('a2f733d9622e4f22d230243cc25dca0933eae163933d08a98358a933056cf29630c1fa34d7cc449fb45890c55770023aef1e6a3d72702dc1fd0357f38e09a7e7')
 
 prepare() {
-  cd gui-ufw-${pkgver}
-  sed 's|python3.5|python3.7|g' -i bin/gufw-pkexec
+  cd gui-ufw
+  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  sed -E "s|python3\.[0-9]|python${PYTHONVERSION}|g" -i bin/gufw-pkexec
 }
 
-package(){
-  cd gui-ufw-${pkgver}
+package() {
+  cd gui-ufw
+  # required so desktop, icon and translation files get installed
   export XDG_RUNTIME_DIR="/tmp/${pkgname}"
   python setup.py install --root="${pkgdir}" -O1
 }



More information about the arch-commits mailing list