add deps for jaspBsts

This commit is contained in:
Sukanka 2022-06-04 00:23:48 +08:00
parent 7848c0d9b6
commit 3f22f23a40
9 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# system requirements: GNU Make, C++11
# Maintainer: sukanka <su975853527@gmail.com>
_pkgname=Boom
_pkgver=0.9.10
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
pkgdesc='Bayesian Object Oriented Modeling'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('LGPL')
depends=(
r
)
optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('403c1df9e3adbdf79b393c04cccfe99e6fbda352cce340eb5e2e65bcc61fa1f0')
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,7 @@
build_prefix: extra-x86_64
maintainers:
- github: sukanka
update_on:
- regex: Boom_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=Boom

View file

@ -0,0 +1,33 @@
# Maintainer: sukanka <su975853527@gmail.com>
_pkgname=BoomSpikeSlab
_pkgver=1.2.5
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
pkgdesc='MCMC for Spike and Slab Regression'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('LGPL')
depends=(
r
r-boom
)
optdepends=(
r-igraph
r-mass
r-mlbench
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('bc88ad95075b91799476e9e56281e4bf421106601acdbee5de783c9048b22bf8')
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,9 @@
build_prefix: extra-x86_64
maintainers:
- github: sukanka
repo_depends:
- r-boom
update_on:
- regex: BoomSpikeSlab_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=BoomSpikeSlab

View file

@ -0,0 +1,33 @@
# Maintainer: sukanka <su975853527@gmail.com>
_pkgname=bsts
_pkgver=0.9.8
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
pkgdesc='Bayesian Structural Time Series'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('LGPL')
depends=(
r
r-boom
r-boomspikeslab
r-xts
r-zoo
)
optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('8c8ef3cd2bdb6d23fe72c74971ceb88847d215091bdc76fae3765f9b99430090')
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,12 @@
build_prefix: extra-x86_64
maintainers:
- github: sukanka
repo_depends:
- r-boom
- r-boomspikeslab
- r-xts
- r-zoo
update_on:
- regex: bsts_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=bsts