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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:44:53 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:44:52
  Author: felixonmars
Revision: 1063306

archrelease: copy trunk to community-staging-any

Added:
  nyx/repos/community-staging-any/
  nyx/repos/community-staging-any/PKGBUILD
    (from rev 1063305, nyx/trunk/PKGBUILD)

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

Copied: nyx/repos/community-staging-any/PKGBUILD (from rev 1063305, nyx/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:44:52 UTC (rev 1063306)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Alex Xu <alex_y_xu at yahoo.ca>
+
+pkgname=nyx
+pkgver=2.1.0
+pkgrel=5
+pkgdesc='Command-line status monitor for tor'
+url='https://nyx.torproject.org/'
+arch=('any')
+license=('GPL3')
+depends=('python' 'python-stem' 'net-tools' 'procps-ng' 'lsof')
+makedepends=('python-setuptools')
+optdepends=('tor: tor-server to talk to')
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
+sha512sums=('69a645cc811a1b1fbd9cf0501d8f23f1a52e0e92a0598097bb0c9efb040e1895e1dd431bad93be36db0e85ca7ac32ee5c866d50d2812069a39e5160b44575a37'
+            'SKIP')
+validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1 at gmail.com>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # remove tests requiring full terminal
+  rm -r test/{panel,{popups,subwindow,installation}.py}
+  # make test exit on error
+  sed -E 's|(test_runner.run\(tests\))|__import__("sys").exit(0 if \1.wasSuccessful() else 1)|' -i run_tests.py
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  ./run_tests.py
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+  install -Dm 644 nyx.1 -t "${pkgdir}/usr/share/man/man1"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list