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,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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue