git » nvchecker.git » commit 0af0dfc

nvchecker: refactor handling of signed git tags

author Chih-Hsuan Yen
2022-02-03 02:47:07 UTC
committer Chih-Hsuan Yen
2022-02-03 02:47:07 UTC
parent 3e241f5e53820366e855222c40f3da3a59ec8b6c

nvchecker: refactor handling of signed git tags

PKGBUILD +3 -3

diff --git a/PKGBUILD b/PKGBUILD
index 37f8a82..ed046ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
 
 pkgname=nvchecker
 pkgver=2.6
-# git rev-parse v$pkgver
-_commit=d537d252f5cd55b8fd3c4226c3a18a21653fbcaa
+# curl https://api.github.com/repos/lilydjwg/nvchecker/git/ref/tags/v$pkgver | jq -r .object.sha
+_tag=d537d252f5cd55b8fd3c4226c3a18a21653fbcaa
 pkgrel=1
 pkgdesc="New version checker for software releases"
 arch=('any')
@@ -21,7 +21,7 @@ optdepends=(
   'python-gobject: for nvchecker-notify'
   'libnotify: for nvchecker-notify'
 )
-source=("git+https://github.com/lilydjwg/nvchecker.git?signed#tag=$_commit")
+source=("git+https://github.com/lilydjwg/nvchecker.git?signed#tag=$_tag")
 sha512sums=('SKIP')
 validpgpkeys=(
   # No direct trust chain. Some related stuffs: