git » nvchecker.git » commit 7726e4f

cleanup upstreamed patches

author Chih-Hsuan Yen
2021-10-03 14:36:44 UTC
committer Chih-Hsuan Yen
2021-10-03 14:36:44 UTC
parent 14836a873f4ec57d2c92c9ae55ee0f1dd25442c8

cleanup upstreamed patches

PKGBUILD +8 -12

diff --git a/PKGBUILD b/PKGBUILD
index 14a7d0b..ca2bc65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@
 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
 
 pkgname=nvchecker
-pkgver=2.4
+pkgver=2.5
 # git rev-parse v$pkgver
-_commit=f89ebe4e43c45e95a5b4cbcf58f23d81a616c12f
-pkgrel=2
+_commit=f0be206608736c108403736206a28356e8052de7
+pkgrel=1
 pkgdesc="New version checker for software releases"
 arch=('any')
 url="https://github.com/lilydjwg/nvchecker"
@@ -31,14 +31,13 @@ validpgpkeys=(
 )
 
 _backports=(
-  # cleanup dependencies and update setup.py (https://github.com/lilydjwg/nvchecker/pull/197)
-  02515fc82d3be563937bb98b5625fc7fb99c35f7
-  # anitya: relax the test - shutter is updated often these days (https://github.com/lilydjwg/nvchecker/pull/198)
-  44b9f1856fbc68c58ae76840c2e14c3dddd8b22e
-  # Update tests (https://github.com/lilydjwg/nvchecker/pull/199)
-  b8afc434300d51e1c77e21f3c3880139e6feb6ce
 )
 
+pkgver() {
+  cd nvchecker
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
 prepare() {
   cd nvchecker
 
@@ -48,9 +47,6 @@ prepare() {
     git log --oneline -1 "${_c}"
     git cherry-pick -n "${_c}"
   done
-
-  # revert the version changed in 02515fc82d3be563937bb98b5625fc7fb99c35f7
-  sed -i "s#__version__.*#__version__ = '$pkgver'#" nvchecker/__init__.py
 }
 
 build() {