mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
retrict cpu and ram usage
This commit is contained in:
parent
3ae96dba1a
commit
42ea73719e
4 changed files with 83 additions and 1 deletions
48
BioArchLinux/r-metabma/PKGBUILD
Normal file
48
BioArchLinux/r-metabma/PKGBUILD
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# system requirements: GNU make
|
||||||
|
# Maintainer: sukanka <su975853527@gmail.com>
|
||||||
|
|
||||||
|
_pkgname=metaBMA
|
||||||
|
_pkgver=0.6.7
|
||||||
|
pkgname=r-${_pkgname,,}
|
||||||
|
pkgver=${_pkgver//[:-]/.}
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis'
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://cran.r-project.org/package=${_pkgname}"
|
||||||
|
license=('GPL')
|
||||||
|
depends=(
|
||||||
|
r
|
||||||
|
r-bh
|
||||||
|
r-bridgesampling
|
||||||
|
r-coda
|
||||||
|
r-laplacesdemon
|
||||||
|
r-logspline
|
||||||
|
r-mvtnorm
|
||||||
|
r-rcpp
|
||||||
|
r-rcppeigen
|
||||||
|
r-rcppparallel
|
||||||
|
r-rstan
|
||||||
|
r-rstantools
|
||||||
|
r-stanheaders
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
r-knitr
|
||||||
|
r-rmarkdown
|
||||||
|
r-spelling
|
||||||
|
r-testthat
|
||||||
|
)
|
||||||
|
makedepends=('make')
|
||||||
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
|
sha256sums=('330bccb4b2297bc3a8b7291197c5e978b90b002907f762ede40f2d3e383367da')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
# restrict the usage of memory and cpu, 1 threads usually consumes 2 GiB memory.
|
||||||
|
export MAKE="make -j5"
|
||||||
|
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-metabma/lilac.py
Normal file
12
BioArchLinux/r-metabma/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()
|
20
BioArchLinux/r-metabma/lilac.yaml
Normal file
20
BioArchLinux/r-metabma/lilac.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
build_prefix: extra-x86_64
|
||||||
|
maintainers:
|
||||||
|
- github: sukanka
|
||||||
|
repo_depends:
|
||||||
|
- r-bh
|
||||||
|
- r-bridgesampling
|
||||||
|
- r-coda
|
||||||
|
- r-laplacesdemon
|
||||||
|
- r-logspline
|
||||||
|
- r-mvtnorm
|
||||||
|
- r-rcpp
|
||||||
|
- r-rcppeigen
|
||||||
|
- r-rcppparallel
|
||||||
|
- r-rstan
|
||||||
|
- r-rstantools
|
||||||
|
- r-stanheaders
|
||||||
|
update_on:
|
||||||
|
- regex: metaBMA_([\d._-]+).tar.gz
|
||||||
|
source: regex
|
||||||
|
url: https://cran.r-project.org/package=metaBMA
|
|
@ -4,7 +4,7 @@
|
||||||
_pkgname=rstanarm
|
_pkgname=rstanarm
|
||||||
_pkgver=2.21.3
|
_pkgver=2.21.3
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=2.21.3
|
pkgver=${_pkgver//[:-]/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Bayesian Applied Regression Modeling via Stan'
|
pkgdesc='Bayesian Applied Regression Modeling via Stan'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -46,6 +46,8 @@ source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('e9f2d3761b8e4f14a6690beb633b08633cba7269ac8b969aedaa12844d1a32a7')
|
sha256sums=('e9f2d3761b8e4f14a6690beb633b08633cba7269ac8b969aedaa12844d1a32a7')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
# restrict the usage of memory and cpu, 1 threads usually consumes 2 GiB memory.
|
||||||
|
export MAKE="make -j5"
|
||||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue