[arch-commits] Commit in nvchecker/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon Oct 5 16:27:47 UTC 2020
Date: Monday, October 5, 2020 @ 16:27:46
Author: yan12125
Revision: 718759
upgpkg: nvchecker 2.1-1; add man page [1]
[1] https://github.com/lilydjwg/nvchecker/issues/157
Modified:
nvchecker/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-05 13:37:10 UTC (rev 718758)
+++ PKGBUILD 2020-10-05 16:27:46 UTC (rev 718759)
@@ -2,7 +2,7 @@
# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
pkgname=nvchecker
-pkgver=2.0
+pkgver=2.1
pkgrel=1
pkgdesc="New version checker for software releases"
arch=('any')
@@ -10,24 +10,20 @@
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'
)
-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')
+source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c9c000b0b648996888a7263fb722779287b5d94e4eb377caf115baa3d4efc9c7c334c1ead43855df057801a22cc86021a314b7c987f0b5596eee972526aba7f9')
-prepare() {
- cd nvchecker-$pkgver
- patch -Np1 -i ../$pkgname-exclude-docs.patch
-}
-
build() {
cd nvchecker-$pkgver
python setup.py build
+
+ make -C docs man
}
check() {
@@ -44,9 +40,8 @@
# 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
+ 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