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

Levente Polyak anthraxx at archlinux.org
Wed Aug 21 17:58:35 UTC 2019


    Date: Wednesday, August 21, 2019 @ 17:58:35
  Author: anthraxx
Revision: 500430

upgpkg: gufw 19.10.0-1

Modified:
  gufw/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-21 17:57:58 UTC (rev 500429)
+++ PKGBUILD	2019-08-21 17:58:35 UTC (rev 500430)
@@ -2,7 +2,7 @@
 # Contributor : Martin Wimpress <code at flexion.org>
 
 pkgname=gufw
-_pkgver=18.10
+_pkgver=19.10
 pkgver=${_pkgver}.0
 pkgrel=1
 pkgdesc='Uncomplicated way to manage your Linux firewall'
@@ -12,20 +12,21 @@
 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=('c44468550cbcb35ebee0dd8339341447118811ccd0714e79350136117421b93b')
-sha512sums=('a2f733d9622e4f22d230243cc25dca0933eae163933d08a98358a933056cf29630c1fa34d7cc449fb45890c55770023aef1e6a3d72702dc1fd0357f38e09a7e7')
+sha256sums=('18c155ef7b62e457e7c89fb9827db531a453d3fd766911c1b09c9fc716255cba')
+sha512sums=('4155c7cd729baecf7ae49e91e72ef8020d8e289379acc5273211031faf63056ebb795577d761cf79694ed9a189a2970b50264822e64e0863d0b96deaaab3ef81')
 
 prepare() {
-  cd gui-ufw
+  cd gui-ufw-${pkgver}
   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
+  sed -E 's/(loginctl\|grep \$\(whoami\))/\1|sort -n|tail -n 1/g' -i bin/gufw
 }
 
 package() {
-  cd gui-ufw
+  cd gui-ufw-${pkgver}
   # required so desktop, icon and translation files get installed
   export XDG_RUNTIME_DIR="/tmp/${pkgname}"
-  python setup.py install --root="${pkgdir}" -O1
+  python setup.py install --prefix=/usr --root="${pkgdir}" -O1
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list