update to 2.33.0

This commit is contained in:
sukanka 2023-09-05 21:24:40 +08:00
parent d6d3a8924e
commit fb239c53e1
3 changed files with 15 additions and 10 deletions

View file

@ -1,6 +1,6 @@
pkgbase = stanc
pkgdesc = A package for obtaining Bayesian inference using the No-U-Turn sampler, a variant of Hamiltonian Monte Carlo.
pkgver = 2.32.2
pkgver = 2.33.0
pkgrel = 1
url = https://mc-stan.org/
arch = i686
@ -23,11 +23,13 @@ pkgbase = stanc
makedepends = inetutils
depends = gcc-libs
provides = cmdstan
source = https://github.com/stan-dev/cmdstan/releases/download/v2.32.2/cmdstan-2.32.2.tar.gz
source = stanc-2.33.0.tar.gz::https://github.com/stan-dev/cmdstan/archive/refs/tags/v2.33.0.tar.gz
source = stan-2.33.0.tar.gz::https://github.com/stan-dev/stan/archive/refs/tags/v2.33.0.tar.gz
source = local
source = cli11.patch
sha512sums = b6bea6fffcb37254fc5078be98d36da8a9886aa9a422970a4511325b6d5734f2ada31a894dcece68b918757ffdd22367d1e5a11496a5344286cbb795e3054bed
sha512sums = 0e446a71eee57f3e793f6b649b62641634676fc41642f3766157537248ac3595458bd87d6b1f2b3e7be6d8f197336278e16c84626d43a4d240707bd0e871b59d
sha512sums = 7c2580a5abdaf27522fb3d2db2a851e1c642424438ab41942ddd7b5cc81975b6bb5955536c784c0a39df8e80785260ed2e20e99fbcca7568d3e154cca295bfc5
sha512sums = 6e7541e9688eab98e7c92cb10e5ef741d361d8c4f879fccdf784f2d492652454cf44a1331122529d7d344d3252520966d344dec0e14934458c7d5bfa8139530d
sha512sums = 83d164dc8ac6f53980874ee2654dc5a88610ec58763624534cdd169cec0e1639875a2eb470bbf00c4ad5073dc37aea070f87c137c8f080d817fd0983f262acd6
sha512sums = fff32eedf0f2044c3ffdd0e6e83927d1b6b535f7d2f960ff20a2f6e84b5b825ec90ea3db5c7bd5cf67f6b2079fe1a7fac2529d5379af931175cefac44681700b
pkgname = stanc

View file

@ -3,7 +3,7 @@
pkgname='stanc'
pkgdesc="A package for obtaining Bayesian inference using the No-U-Turn sampler, a variant of Hamiltonian Monte Carlo."
pkgver=2.32.2
pkgver=2.33.0
pkgrel=1
arch=('i686' 'x86_64')
url='https://mc-stan.org/'
@ -17,17 +17,20 @@ makedepends=('texlive-bin' 'texlive-core' 'doxygen'
'inetutils'
)
provides=("cmdstan")
source=(https://github.com/stan-dev/cmdstan/releases/download/v${pkgver/_/-}/cmdstan-${pkgver/_/-}.tar.gz
source=("stanc-${pkgver}.tar.gz::https://github.com/stan-dev/cmdstan/archive/refs/tags/v${pkgver}.tar.gz"
"stan-${pkgver}.tar.gz::https://github.com/stan-dev/stan/archive/refs/tags/v${pkgver}.tar.gz"
local
cli11.patch
)
sha512sums=('b6bea6fffcb37254fc5078be98d36da8a9886aa9a422970a4511325b6d5734f2ada31a894dcece68b918757ffdd22367d1e5a11496a5344286cbb795e3054bed'
'0e446a71eee57f3e793f6b649b62641634676fc41642f3766157537248ac3595458bd87d6b1f2b3e7be6d8f197336278e16c84626d43a4d240707bd0e871b59d'
sha512sums=('7c2580a5abdaf27522fb3d2db2a851e1c642424438ab41942ddd7b5cc81975b6bb5955536c784c0a39df8e80785260ed2e20e99fbcca7568d3e154cca295bfc5'
'6e7541e9688eab98e7c92cb10e5ef741d361d8c4f879fccdf784f2d492652454cf44a1331122529d7d344d3252520966d344dec0e14934458c7d5bfa8139530d'
'83d164dc8ac6f53980874ee2654dc5a88610ec58763624534cdd169cec0e1639875a2eb470bbf00c4ad5073dc37aea070f87c137c8f080d817fd0983f262acd6'
'fff32eedf0f2044c3ffdd0e6e83927d1b6b535f7d2f960ff20a2f6e84b5b825ec90ea3db5c7bd5cf67f6b2079fe1a7fac2529d5379af931175cefac44681700b')
prepare(){
cp -rf "${srcdir}/stan-${pkgver/_/-}"/* "${srcdir}/cmdstan-${pkgver/_/-}/stan/"
cd "${srcdir}/cmdstan-${pkgver/_/-}"
patch --strip=1 < ../cli11.patch
patch --strip=1 < ../cli11.patch
cp ${srcdir}/local make/local
cp ${srcdir}/local stan/make/local
sed -i 's|CLI11/CLI11.hpp|CLI/CLI.hpp|g' src/cmdstan/stansummary.cpp

2
local
View file

@ -6,6 +6,6 @@ TBB = /usr/include/
SUNDIALS = /usr/include/sundials
BENCHMARK = /usr/include/benchmark
GTEST = /usr/include/gtest
CPPLINT = /usr/lib/python3.10/site-packages/
CPPLINT = /usr/lib/python3.11/site-packages/
RAPIDJSON = /usr/include/rapidjson/
CLI11 = /usr/include/