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,12 +1,16 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from lilaclib import * 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(): def pre_build():
for line in edit_file('PKGBUILD'): r_pre_build(_G)
if line.startswith('_pkgver='):
line = f'_pkgver={_G.newver}'
print(line)
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
def post_build(): def post_build():
git_pkgbuild_commit() git_pkgbuild_commit()

View file

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