[arch-commits] Commit in nvchecker/repos/community-any (PKGBUILD PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Fri Feb 19 17:32:55 UTC 2021
Date: Friday, February 19, 2021 @ 17:32:55
Author: yan12125
Revision: 865998
archrelease: copy trunk to community-any
Added:
nvchecker/repos/community-any/PKGBUILD
(from rev 865997, nvchecker/trunk/PKGBUILD)
Deleted:
nvchecker/repos/community-any/PKGBUILD
----------+
PKGBUILD | 110 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 61 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-19 17:32:37 UTC (rev 865997)
+++ PKGBUILD 2021-02-19 17:32:55 UTC (rev 865998)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=nvchecker
-pkgver=2.2
-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')
-makedepends=('python-docutils')
-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'
- 'python-gobject: for nvchecker-notify'
- 'libnotify: for nvchecker-notify'
-)
-source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('fb4043cf952f12d72eb5b26adc9eb55722c8461be9bdefc1e3512985bae2bc26f5c994f045df3485029d53ff31a731e4d1bd6323fa35eeefbb548bdae074d6e0')
-
-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 865997, nvchecker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-19 17:32:55 UTC (rev 865998)
@@ -0,0 +1,61 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=nvchecker
+pkgver=2.2
+pkgrel=3
+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')
+makedepends=('python-docutils')
+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'
+ 'python-gobject: for nvchecker-notify'
+ 'libnotify: for nvchecker-notify'
+)
+source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+ "https://github.com/lilydjwg/nvchecker/commit/91daf5ad4d713f6dfcd38053090c5ae3d60dc73f.patch"
+ "https://github.com/lilydjwg/nvchecker/commit/e6e8573c338ad57192554b5c6a5c56990e4fd9d1.patch")
+sha512sums=('fb4043cf952f12d72eb5b26adc9eb55722c8461be9bdefc1e3512985bae2bc26f5c994f045df3485029d53ff31a731e4d1bd6323fa35eeefbb548bdae074d6e0'
+ 'c3bacf14b232b9b7e2ff211f1d95a8b5a8667ab63d0dea27d203e0e734e327731c55d8566e9ebd67a5db95968c74e0cf45dc3b6907cf65f7a4a7d982ee8e0f8d'
+ '024bc5a1e7e0eff951bbc8843a43f7582a826f5322a2175fd769c258f4645f5fc298f6188d808dc2b46ddc799bac4acb8a2798b47d25074864fbe8d6830fa3b9')
+
+prepare() {
+ cd nvchecker-$pkgver
+ # Make the generated man page reproducible
+ patch -Np1 -i ../91daf5ad4d713f6dfcd38053090c5ae3d60dc73f.patch
+ # Fix tests
+ patch -Np1 -i ../e6e8573c338ad57192554b5c6a5c56990e4fd9d1.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