mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-refmanager: add lilac.py
This commit is contained in:
parent
90335db5ab
commit
379c558072
1 changed files with 12 additions and 0 deletions
12
BioArchLinux/r-refmanager/lilac.py
Normal file
12
BioArchLinux/r-refmanager/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/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('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
Loading…
Add table
Reference in a new issue