Date: Thursday, April 28, 2022 @ 15:28:05 Author: yan12125 Revision: 1191653
upgpkg: python-jwcrypto 1.2.0-1; make sure $pkgver matches the git tag via pkgver() Also improves the comment for retrieving the tag id Modified: python-jwcrypto/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-04-28 15:03:17 UTC (rev 1191652) +++ PKGBUILD 2022-04-28 15:28:05 UTC (rev 1191653) @@ -3,10 +3,10 @@ _pkgname=jwcrypto pkgname=python-$_pkgname -pkgver=1.0 -# git rev-parse v1.0.0.sig -_tag=8040a603b5281cdc5876aa4b0c771f30fe60de62 -pkgrel=3 +pkgver=1.2.0 +# curl https://api.github.com/repos/latchset/jwcrypto/git/ref/tags/v$pkgver | jq -r .object.sha +_tag=dcae59d007a9a41916e738c284419b3106fbaba6 +pkgrel=1 pkgdesc='Python implementation of JWK, JWS, JWE specifications' arch=(any) url='https://github.com/latchset/jwcrypto' @@ -26,6 +26,11 @@ '7C7BD146943B206BB645B64594EAD67E004B65AB' # Simo Sorce <[email protected]> ) +pkgver() { + cd $_pkgname + git describe --tags | sed 's/^v//;s/-/+/g' +} + build() { cd $_pkgname python setup.py build
