blob: b85b64b60de0ea40a7f83735581641e967505559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Andrea Manenti <andrea [dot] manenti [at] yahoo [dot] com>
pkgname=sdpb-git
pkgver=1521.b359336
pkgrel=1
pkgdesc="Semidefinite program solver designed for the conformal bootstrap"
arch=(x86_64)
license=('MIT')
url="https://arxiv.org/abs/1909.09745"
depends=('boost' 'libarchive' 'libxml2' 'mpfr' 'rapidjson' 'elemental-gmp-git')
optdepends=('openmpi')
makedepends=('git' 'python')
source=('git+https://github.com/davidsd/sdpb.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir"/sdpb
echo `git rev-list --count master`.`git rev-parse --short master`
}
build () {
cd "$srcdir"/sdpb
# 'U' read mode was deprecated in python 3.11
# This is a workaround
python waf configure --prefix=/usr 1>&2 2> /dev/null || true # is going to fail but it generates the scripts
sed -i -e "s/'rU'/'r'/g" .waf*/waflib/Context.py
python waf configure --prefix=/usr
# We need to do this one more time
sed -i -e "s/'rU'/'r'/g" .waf*/waflib/ConfigSet.py
python waf
}
package() {
cd "$srcdir"/sdpb/build
for bin_name in sdp2functions spectrum pvm2functions sdp2input sdpb approx_objective outer_limits pvm2sdp
do
install -vDm 755 "$bin_name" "$pkgdir"/usr/bin/"$bin_name"
done
}
|