summaryrefslogtreecommitdiff
path: root/hstcal/build.sh
blob: 0e9f4963f70c1aa2786056d625ad3118c0cc9605 (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
#!/bin/bash
name=hstcal
version=2.3.1
revision=0
sources=()
build_depends=(
    "git"
    "python"
    "gcc==8.4.0"
)
depends=(
    "cfitsio"
)

_waf_version=2.0.18

function prepare() {
    curl -L https://waf.io/waf-${_waf_version} > waf
    chmod +x waf

    git clone https://github.com/spacetelescope/${name}
    cd ${name}
    git checkout ${version}
}

function build() {
    ../waf configure --prefix=${_prefix}
echo debug
bash
}

function package() {
    ../waf install --destdir="${_pkgdir}"
}