Date: Monday, November 4, 2019 @ 10:19:57 Author: foutrelis Revision: 524011
archrelease: copy trunk to community-staging-any Added: nyx/repos/community-staging-any/ nyx/repos/community-staging-any/PKGBUILD (from rev 524010, nyx/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: nyx/repos/community-staging-any/PKGBUILD (from rev 524010, nyx/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2019-11-04 10:19:57 UTC (rev 524011) @@ -0,0 +1,42 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Alex Xu <alex_y...@yahoo.ca> + +pkgname=nyx +pkgver=2.1.0 +pkgrel=2 +pkgdesc='Command-line status monitor for tor' +url='https://nyx.torproject.org/' +arch=('any') +license=('GPL3') +depends=('python' 'python-setuptools' 'python-stem' 'net-tools' 'procps-ng' 'lsof') +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) <atag...@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: