Packages/BioArchLinux/r-jaspaudit/lilac.py
sukanka 8244d0ecf3 r-jasp*: use tag for repreducible builds.
remove r-jaspresults, as it's unused.
2023-01-30 22:36:15 +08:00

9 lines
281 B
Python

#!/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('-', '.'))