mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-dfoptim: add new pkgs
This commit is contained in:
parent
3c5c4cdf16
commit
936ae2fd88
4 changed files with 51 additions and 2 deletions
27
BioArchLinux/r-dfoptim/PKGBUILD
Normal file
27
BioArchLinux/r-dfoptim/PKGBUILD
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
|
_pkgname=dfoptim
|
||||||
|
_pkgver=2023.1.0
|
||||||
|
pkgname=r-${_pkgname,,}
|
||||||
|
pkgver=${_pkgver//-/.}
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Derivative-Free optimization algorithms. These algorithms do not require gradient information. More importantly, they can be used to solve non-smooth optimization problems."
|
||||||
|
arch=('any')
|
||||||
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
|
license=('GPL-2.0-or-later')
|
||||||
|
depends=(
|
||||||
|
r
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
)
|
||||||
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
|
sha256sums=('c436a6d866c94fc71e71a1f6a39bee9245aea1a062dc8dba3b2b229b88d05c30')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||||
|
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||||
|
}
|
13
BioArchLinux/r-dfoptim/lilac.py
Normal file
13
BioArchLinux/r-dfoptim/lilac.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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()
|
||||||
|
update_aur_repo()
|
9
BioArchLinux/r-dfoptim/lilac.yaml
Normal file
9
BioArchLinux/r-dfoptim/lilac.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
build_prefix: extra-x86_64
|
||||||
|
maintainers:
|
||||||
|
- github: sukanka
|
||||||
|
email: sukanka@askk.cc
|
||||||
|
update_on:
|
||||||
|
- regex: dfoptim_([\d._-]+).tar.gz
|
||||||
|
source: regex
|
||||||
|
url: https://bioconductor.org/packages/dfoptim
|
||||||
|
- alias: r
|
|
@ -21,8 +21,8 @@ repo_depends:
|
||||||
- r-robma
|
- r-robma
|
||||||
- r-metamisc
|
- r-metamisc
|
||||||
- r-ggmcmc
|
- r-ggmcmc
|
||||||
- r-clubSandwich
|
- r-clubsandwich
|
||||||
- r-CompQuadForm
|
- r-compquadform
|
||||||
- r-sp
|
- r-sp
|
||||||
- r-dfoptim
|
- r-dfoptim
|
||||||
- r-nleqslv
|
- r-nleqslv
|
||||||
|
|
Loading…
Add table
Reference in a new issue