normd: change getver

This commit is contained in:
Kuoi 2023-10-14 02:45:16 +08:00
parent b84c89227d
commit ae40688752
2 changed files with 7 additions and 12 deletions

View file

@ -1,10 +0,0 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
def post_build():
git_add_files('PKGBUILD')
git_commit()

View file

@ -2,6 +2,11 @@ build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: cmd
cmd: curl -sS http://www.bork.embl.de/Docu/AQUA/latest/ | grep norMD | sed 's/"/ /g' | awk '{print $10}' | sed 's/norMD//g' | sed 's/.tar.gz//g'
- source: cmd
cmd: curl -sS https://www.bork.embl.de/Docu/AQUA/latest/ | grep norMD | sed 's/"/ /g;s/.tar.gz//g;s/norMD/ /g' | awk '{print $ 12}'