[arch-commits] Commit in gufw/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Jan 14 23:20:32 UTC 2021


    Date: Thursday, January 14, 2021 @ 23:20:32
  Author: anthraxx
Revision: 820924

archrelease: copy trunk to community-any

Added:
  gufw/repos/community-any/PKGBUILD
    (from rev 820923, gufw/trunk/PKGBUILD)
Deleted:
  gufw/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   72 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 36 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-14 23:20:28 UTC (rev 820923)
+++ PKGBUILD	2021-01-14 23:20:32 UTC (rev 820924)
@@ -1,36 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor : Martin Wimpress <code at flexion.org>
-
-pkgname=gufw
-pkgver=20.04.1
-pkgrel=3
-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://github.com/costales/gufw/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('fbc5a8ce863c3178354230ca4224b6c32e2aee691d3db1ba397f0b0c8a7acdd3d0a2f739c62ec5f99957e422387fd3ccee4ddce9959160c3c50c81a769b49981')
-b2sums=('af273dc6430ae2d77eb857f3b00428ca12ace441e355642fd44adfaf0f6b369baa2fbd5d25ec57a8317911166330777d2ef94ea7a59eff8ddb6e51d6c322ccfd')
-
-prepare() {
-  cd ${pkgname}-${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
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  python setup.py build
-}
-
-package() {
-  cd ${pkgname}-${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:

Copied: gufw/repos/community-any/PKGBUILD (from rev 820923, gufw/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-14 23:20:32 UTC (rev 820924)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor : Martin Wimpress <code at flexion.org>
+
+pkgname=gufw
+pkgver=21.04.0
+pkgrel=1
+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://github.com/costales/gufw/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('58769f3edc4faca9400c78907368209c3bdbc3bac3534b84f1484bce6c08c93778ad20e25ffd3857afaea73076b713a00cd3ff2f8e034ccb22864dfd082b1105')
+b2sums=('33be802a5843c9cc166bd7de3fed32d66e72ec929e64c37c347ff7289030f9d19ce26655f0d079216590b77a071e4276effa28447894c983d7e49db8de1afb4c')
+
+prepare () {
+  cd ${pkgname}-${pkgver}
+  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  sed 's|/usr/share/gufw/gufw/gufw.py $1|/usr/lib/python'"${PYTHONVERSION}"'/site-packages/gufw/gufw.py "$@"|' -i bin/gufw-pkexec
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  # required so desktop, icon and translation files get installed
+  export XDG_RUNTIME_DIR="$(mktemp -d --tmpdir gufw-build-XXXXXXXXX)"
+  python setup.py install --prefix=/usr --root="${pkgdir}" -O1
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list