r-dfoptim: try to fix pkg

This commit is contained in:
sukanka 2024-12-21 10:58:33 +08:00
parent 91ed4e35cc
commit 3659d38834
2 changed files with 14 additions and 9 deletions

View file

@ -1,13 +1,17 @@
#!/usr/bin/env python3
from lilaclib import *
import os
import sys
sys.path.append(os.path.normpath(f"{__file__}/../../../lilac-extensions"))
from lilac_r_utils import r_pre_build
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('-', '.'))
r_pre_build(_G)
def post_build():
git_pkgbuild_commit()
update_aur_repo()
update_aur_repo()

View file

@ -3,7 +3,8 @@ maintainers:
- github: sukanka
email: sukanka@askk.cc
update_on:
- regex: dfoptim_([\d._-]+).tar.gz
source: regex
url: https://bioconductor.org/packages/dfoptim
- source: rpkgs
pkgname: knitr
repo: cran
md5: true
- alias: r