blob: a83dff8eb822d0ea705d47d68b8d6aeb39a0f55d (
plain) (
blame)
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
|
#!/bin/bash
name=hstcal
version=2.3.2
revision=0
sources=()
build_depends=(
"git"
"python"
"gcc==8.4.0"
)
depends=(
"cfitsio"
)
_waf_version=2.0.20
function prepare() {
curl -L https://waf.io/waf-${_waf_version} > waf
chmod +x waf
git clone https://github.com/spacetelescope/${name}
cd ${name}
if [[ $(uname -s) == Darwin ]]; then
CC="${_runtime}/bin/gcc"
LDFLAGS="-L${_runtime}/lib"
export CC
fi
cp wscript ../wscript.orig
sed -E 's|platform.popen(.*)\.read\(\)|call\1|' ../wscript.orig > wscript
}
function build() {
./waf configure --prefix="${_prefix}"
}
function package() {
./waf install --destdir="${_pkgdir}"
}
|