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

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Oct 3 14:16:08 UTC 2020


    Date: Saturday, October 3, 2020 @ 14:16:07
  Author: yan12125
Revision: 716514

archrelease: copy trunk to community-testing-any

Added:
  nvchecker/repos/community-testing-any/
  nvchecker/repos/community-testing-any/PKGBUILD
    (from rev 716513, nvchecker/trunk/PKGBUILD)

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

Copied: nvchecker/repos/community-testing-any/PKGBUILD (from rev 716513, nvchecker/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-10-03 14:16:07 UTC (rev 716514)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=nvchecker
+pkgver=2.0
+pkgrel=1
+pkgdesc="New version checker for software releases"
+arch=('any')
+url="https://github.com/lilydjwg/nvchecker"
+license=('MIT')
+# setuptools is in depends as pkg_resources is used in sortversion.py
+depends=('python' 'python-setuptools' 'python-toml' 'python-structlog' 'python-appdirs' 'python-tornado' 'python-pycurl')
+checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'git')
+optdepends=(
+  'pyalpm: allow using "sort_version_key = vercmp" in configuration files'
+  'git: support for git repositories'
+)
+source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        "$pkgname-exclude-docs.patch::https://github.com/lilydjwg/nvchecker/commit/b3bc7ec04975ab43a651b78cd708e8c32f974293.patch")
+sha512sums=('1ae9b52c01ac683e5f74d9a10b7b26d5bad62b54a905f9372afea31fc084f4ff6e426a01634b0ff040270d1dff256f8385426bfe470d434a7f694446f1656ebb'
+            'f6a131501d3249e6de23b345d9be70dc7209a638af50bcb9c4e5928f9d19ef85e377bdc6ca97dcc90cc868859f9bfc35c8e3a6cd1abf9f5c022e894119d6cb32')
+
+prepare() {
+  cd nvchecker-$pkgver
+  patch -Np1 -i ../$pkgname-exclude-docs.patch
+}
+
+build() {
+  cd nvchecker-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd nvchecker-$pkgver
+  pytest
+}
+
+package() {
+  cd nvchecker-$pkgver
+  # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722
+  PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+
+  # bash completion scripts & docs
+  install -Dm644 scripts/nvtake.bash_completion "$pkgdir"/usr/share/bash-completion/completions/nvtake
+  install -Dm644 docs/usage.rst -t "$pkgdir"/usr/share/doc/$pkgname/
+  # Installed with a different filename as it is renamed soon after the release
+  # https://github.com/lilydjwg/nvchecker/commit/854399a30aaafed37bdfcf2c8fe561f4702124b7
+  install -Dm644 sample_source.toml "$pkgdir"/usr/share/doc/$pkgname/sample_config.toml
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list