mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
manually add frf2 and ic.infer
This commit is contained in:
parent
99c7d0ffcb
commit
eb73ceaacf
6 changed files with 117 additions and 0 deletions
37
BioArchLinux/r-frf2/PKGBUILD
Normal file
37
BioArchLinux/r-frf2/PKGBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# system requirements: GNU make
|
||||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=FrF2
|
||||
_pkgver=2.2-3
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Fractional Factorial Designs with 2-Level Factors"
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
depends=(
|
||||
r
|
||||
r-doe.base
|
||||
r-sfsmisc
|
||||
r-scatterplot3d
|
||||
r-igraph
|
||||
)
|
||||
optdepends=(
|
||||
r-frr2.catlg128
|
||||
r-bsmd
|
||||
r-doe.wrapper
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('7a2004a998db38b00bbc8caf1eb4c37449e58b05560fb73773069dbc267b47e5')
|
||||
|
||||
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"
|
||||
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-frf2/lilac.py
Normal file
12
BioArchLinux/r-frf2/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/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()
|
12
BioArchLinux/r-frf2/lilac.yaml
Normal file
12
BioArchLinux/r-frf2/lilac.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
repo_depends:
|
||||
- r-doe.base
|
||||
- r-sfsmisc
|
||||
- r-scatterplot3d
|
||||
- r-igraph
|
||||
update_on:
|
||||
- regex: FrF2_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=FrF2
|
33
BioArchLinux/r-ic.infer/PKGBUILD
Normal file
33
BioArchLinux/r-ic.infer/PKGBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=ic.infer
|
||||
_pkgver=1.1-6
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Inequality Constrained Inference in Linear Normal Situations'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
depends=(
|
||||
r
|
||||
r-quadprog
|
||||
r-mvtnorm
|
||||
r-kappalab
|
||||
)
|
||||
optdepends=(
|
||||
r-relaimpo
|
||||
)
|
||||
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('fea55a85cef922b2fc96a2e770cf8feea2c9a71208d7e4e7277989544ae76c93')
|
||||
|
||||
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"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-ic.infer/lilac.py
Normal file
12
BioArchLinux/r-ic.infer/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/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()
|
11
BioArchLinux/r-ic.infer/lilac.yaml
Normal file
11
BioArchLinux/r-ic.infer/lilac.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
repo_depends:
|
||||
- r-quadprog
|
||||
- r-mvtnorm
|
||||
- r-kappalab
|
||||
update_on:
|
||||
- regex: ic.infer_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=ic.infer
|
Loading…
Add table
Reference in a new issue