author | Chih-Hsuan Yen
<yan12125@archlinux.org> 2018-11-20 15:24:26 UTC |
committer | Chih-Hsuan Yen
<yan12125@archlinux.org> 2018-11-20 15:24:26 UTC |
parent | 260faa7707ac1ac20f837551a5b3e6707d0abef6 |
PKGBUILD | +12 | -9 |
diff --git a/PKGBUILD b/PKGBUILD index 639dfed..a7b16a7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,23 +1,26 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> +# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org> pkgname=nvchecker -pkgver=1.1 -pkgrel=2 +pkgver=1.2.7 +pkgrel=1 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') +checkdepends=('python-pytest' 'python-pytest-xdist' 'python-pytest-asyncio' 'python-flaky') +optdepends=( + 'pyalpm: allow using "sort_version_key = vercmp" in configuration files' +) +source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz") +sha512sums=('33b4c7da7825bd85d6e27ef37cb64ad9c59664fa3d614a4582172a58109cab7552ca6a49f91c29508fcfd8c12559d2fae496180e92d74983fa12ad5721dbf77a') prepare() { cd nvchecker-$pkgver # fix broken test - patch -p1 -i ../6afa9a551aa9d6030accf7f7c46c7184c2193622.patch + # partial backport of https://github.com/lilydjwg/nvchecker/commit/d0ee3592097fdd4c427fbec95ca48d08b5c93007 + sed -i 's|1\.3-8|1.3-9|' tests/test_{archpkg,pacman}.py } build() { @@ -27,7 +30,7 @@ build() { check() { cd nvchecker-$pkgver - python setup.py pytest + pytest } package() {