mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-dfoptim: try to fix pkg
This commit is contained in:
parent
91ed4e35cc
commit
3659d38834
2 changed files with 14 additions and 9 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue