[arch-commits] Commit in gufw/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 04:22:10 UTC 2019


    Date: Monday, November 4, 2019 @ 04:22:10
  Author: felixonmars
Revision: 523126

archrelease: copy trunk to community-staging-any

Added:
  gufw/repos/community-staging-any/
  gufw/repos/community-staging-any/PKGBUILD
    (from rev 523125, gufw/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: gufw/repos/community-staging-any/PKGBUILD (from rev 523125, gufw/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 04:22:10 UTC (rev 523126)
@@ -0,0 +1,32 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor : Martin Wimpress <code at flexion.org>
+
+pkgname=gufw
+_pkgver=19.10
+pkgver=${_pkgver}.0
+pkgrel=2
+pkgdesc='Uncomplicated way to manage your Linux firewall'
+url='https://gufw.org/'
+arch=('any')
+license=('GPL3')
+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=('18c155ef7b62e457e7c89fb9827db531a453d3fd766911c1b09c9fc716255cba')
+sha512sums=('4155c7cd729baecf7ae49e91e72ef8020d8e289379acc5273211031faf63056ebb795577d761cf79694ed9a189a2970b50264822e64e0863d0b96deaaab3ef81')
+
+prepare() {
+  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-${pkgver}
+  # required so desktop, icon and translation files get installed
+  export XDG_RUNTIME_DIR="/tmp/${pkgname}"
+  python setup.py install --prefix=/usr --root="${pkgdir}" -O1
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list