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

Chih-Hsuan Yen yan12125 at archlinux.org
Sat May 8 08:12:38 UTC 2021


    Date: Saturday, May 8, 2021 @ 08:12:38
  Author: yan12125
Revision: 928679

archrelease: copy trunk to community-any

Added:
  nvchecker/repos/community-any/PKGBUILD
    (from rev 928678, nvchecker/trunk/PKGBUILD)
Deleted:
  nvchecker/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  105 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 56 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-08 08:12:23 UTC (rev 928678)
+++ PKGBUILD	2021-05-08 08:12:38 UTC (rev 928679)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=nvchecker
-pkgver=2.3
-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' 'python-packaging')
-makedepends=('python-docutils')
-checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'pyalpm' 'git')
-optdepends=(
-  'pyalpm: for using "sort_version_key = vercmp" in configuration files and the alpm source'
-  'git: support for git repositories'
-  'python-gobject: for nvchecker-notify'
-  'libnotify: for nvchecker-notify'
-)
-source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('bbdf6348cfd93ae156ae05b3ddb2fd238448e4a9d44eb00d2518b4657f895468af657372453c1a8c8c75f7d2f75467d884347a1aaecf896c0fdb6186607b0a63')
-
-build() {
-  cd nvchecker-$pkgver
-  python setup.py build
-
-  make -C docs man
-}
-
-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/
-  install -Dm644 sample_config.toml -t "$pkgdir"/usr/share/doc/$pkgname/
-  install -Dm644 docs/_build/man/nvchecker.1 -t "$pkgdir"/usr/share/man/man1/
-}
-
-# vim:set ts=2 sw=2 et:

Copied: nvchecker/repos/community-any/PKGBUILD (from rev 928678, nvchecker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-08 08:12:38 UTC (rev 928679)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=nvchecker
+pkgver=2.3
+pkgrel=2
+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' 'python-packaging')
+makedepends=('python-docutils')
+checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'pyalpm' 'git')
+optdepends=(
+  'pyalpm: for using "sort_version_key = vercmp" in configuration files and the alpm source'
+  'git: support for git repositories'
+  'python-gobject: for nvchecker-notify'
+  'libnotify: for nvchecker-notify'
+)
+source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        "nvchecker-update-tests-20210506.patch"::"https://github.com/lilydjwg/nvchecker/commit/134a6885f123a3249c8c5cb168d9bae03c0ea585.patch")
+sha512sums=('bbdf6348cfd93ae156ae05b3ddb2fd238448e4a9d44eb00d2518b4657f895468af657372453c1a8c8c75f7d2f75467d884347a1aaecf896c0fdb6186607b0a63'
+            '0b94b5d72f2322c678425a74c576ecf838e080e905b49b4f2651929fcf5f252b8378cf0df82cc652b604b529c5b202a6013ee4fc22b7204d9abf928bd3a3882d')
+
+prepare() {
+  cd nvchecker-$pkgver
+  patch -Np1 -i ../nvchecker-update-tests-20210506.patch
+}
+
+build() {
+  cd nvchecker-$pkgver
+  python setup.py build
+
+  make -C docs man
+}
+
+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/
+  install -Dm644 sample_config.toml -t "$pkgdir"/usr/share/doc/$pkgname/
+  install -Dm644 docs/_build/man/nvchecker.1 -t "$pkgdir"/usr/share/man/man1/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list