fix lilac related for yaggo and mummer

This commit is contained in:
Kuoi 2022-07-10 05:47:25 +01:00
parent 7bc61f6386
commit 500b0c5c3a
2 changed files with 8 additions and 14 deletions

View file

@ -2,11 +2,9 @@
from lilaclib import *
def pre_build():
for line in edit_file('PKGBUILD'):
if line.startswith('_pkgver='):
line = f'_pkgver={_G.newver}'
print(line)
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_pkgbuild_commit()
git_add_files('PKGBUILD')
git_commit()

View file

@ -1,14 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
for line in edit_file('PKGBUILD'):
if line.startswith('_pkgver='):
line = f'_pkgver={_G.newver}'
print(line)
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_pkgbuild_commit()
git_add_files('PKGBUILD')
git_commit()