manually add frf2 and ic.infer

This commit is contained in:
Sukanka 2022-05-28 01:09:31 +08:00
parent 99c7d0ffcb
commit eb73ceaacf
6 changed files with 117 additions and 0 deletions

View 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:

View 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()

View 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

View 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:

View 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()

View 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