[arch-commits] Commit in nvchecker/repos (2 files)
Date: Thursday, November 12, 2020 @ 19:35:05 Author: foutrelis Revision: 753536 archrelease: copy trunk to community-staging-any Added: nvchecker/repos/community-staging-any/ nvchecker/repos/community-staging-any/PKGBUILD (from rev 753535, nvchecker/trunk/PKGBUILD) --+ PKGBUILD | 49 + 1 file changed, 49 insertions(+) Copied: nvchecker/repos/community-staging-any/PKGBUILD (from rev 753535, nvchecker/trunk/PKGBUILD) === --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-12 19:35:05 UTC (rev 753536) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan +# Maintainer: Chih-Hsuan Yen + +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:
[arch-commits] Commit in nvchecker/repos (2 files)
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 +# Maintainer: Chih-Hsuan Yen + +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:
[arch-commits] Commit in nvchecker/repos (2 files)
Date: Monday, November 4, 2019 @ 09:53:16 Author: felixonmars Revision: 523974 archrelease: copy trunk to community-staging-any Added: nvchecker/repos/community-staging-any/ nvchecker/repos/community-staging-any/PKGBUILD (from rev 523973, nvchecker/trunk/PKGBUILD) --+ PKGBUILD | 49 + 1 file changed, 49 insertions(+) Copied: nvchecker/repos/community-staging-any/PKGBUILD (from rev 523973, nvchecker/trunk/PKGBUILD) === --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2019-11-04 09:53:16 UTC (rev 523974) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan +# Maintainer: Chih-Hsuan Yen + +pkgname=nvchecker +pkgver=1.4.4 +pkgrel=2 +pkgdesc="New version checker for software releases" +arch=('any') +url="https://github.com/lilydjwg/nvchecker; +license=('MIT') +depends=('python' 'python-setuptools' 'python-structlog' 'python-tornado' 'python-pycurl') +checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'git' 'mercurial') +optdepends=( + 'pyalpm: allow using "sort_version_key = vercmp" in configuration files' + 'bzr: for VCS sources' + 'git: for VCS sources' + 'mercurial: for VCS sources' + 'subversion: for VCS sources' +) +source=("https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz; + "$pkgname-test_regex-1.patch::https://github.com/lilydjwg/nvchecker/commit/1e1f431f9bf301ac2ac3e4f158632da8d0ac0858.patch; + "$pkgname-test_regex-2.patch::https://github.com/lilydjwg/nvchecker/commit/6f48b774ae6bffea857e97bed04dd856c7d8aa55.patch;) +sha512sums=('5fb95901641953a093a8d6c10d5b72ad9982dc8cc6161e769b30a861e4057100b861dbe9ae26c288b4fa1126b261f34c82afeb0052670429c1b7f97d1b2cf6ff' + '1c6f42b3df56eee04aecdf09be35972aa184d82a986b942011782b65e717327757eddcc5bea690cf08ff0cf9a0f57b519c2a614f5289ac1cff98bbdf6f90175d' + '5ff70455d2234ddadd8c2a72812b3896c9ec1fa4acf8cb529a5ceaedb2f8b5ffdd9688665f9aec8ddfdc83d3d2482bc0aa9f2a468f04848decf80527ad58f858') + +prepare() { + cd nvchecker-$pkgver + patch -Np1 -i ../$pkgname-test_regex-1.patch + patch -Np1 -i ../$pkgname-test_regex-2.patch +} + +build() { + cd nvchecker-$pkgver + python setup.py build +} + +check() { + cd nvchecker-$pkgver + pytest +} + +package() { + cd nvchecker-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +} + +# vim:set ts=2 sw=2 et:
[arch-commits] Commit in nvchecker/repos (2 files)
Date: Monday, July 23, 2018 @ 17:05:30 Author: eschwartz Revision: 363174 archrelease: copy trunk to community-staging-any Added: nvchecker/repos/community-staging-any/ nvchecker/repos/community-staging-any/PKGBUILD (from rev 363173, nvchecker/trunk/PKGBUILD) --+ PKGBUILD | 40 1 file changed, 40 insertions(+) Copied: nvchecker/repos/community-staging-any/PKGBUILD (from rev 363173, nvchecker/trunk/PKGBUILD) === --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-07-23 17:05:30 UTC (rev 363174) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgname=nvchecker +pkgver=1.1 +pkgrel=2 +pkgdesc="New version checker for software" +arch=('any') +url="https://github.com/lilydjwg/nvchecker; +license=('MIT') +depends=('python-setuptools' 'python-structlog' 'python-tornado' 'python-pycurl') +checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'python-pytest-asyncio' 'python-flaky') +source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz; + "https://github.com/lilydjwg/nvchecker/commit/6afa9a551aa9d6030accf7f7c46c7184c2193622.patch;) +sha512sums=('8680776c22bbb34ad531982027a173744a484a98b9a02fda4068d314bdfadefda29d4542a0dac2981ead26a0040c786c59c9239d5097a8a75aec353ace93b9fd' + '1169a70ec973360ce56e4ab6fdf8092c26e1e0e53ae54c796f400abb66c7884a998b50bc500ee750a173f347569a416bf6d4b192716e857f2f78e2cb6bb14f6d') + +prepare() { + cd nvchecker-$pkgver + # fix broken test + patch -p1 -i ../6afa9a551aa9d6030accf7f7c46c7184c2193622.patch +} + +build() { + cd nvchecker-$pkgver + python setup.py build +} + +check() { + cd nvchecker-$pkgver + python setup.py pytest +} + +package() { + cd nvchecker-$pkgver + python setup.py install -O1 --prefix=/usr --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: