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


function prepare() {
    git clone https://github.com/spacetelescope/${name}
    cd ${name}
    git checkout ${version}
    curl -L https://waf.io/waf-2.0.18 >../waf
    chmod +x ../waf
}

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

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