summaryrefslogtreecommitdiff
path: root/etc/hstdp-snapshot/pkgs/002-hstcal.sh
blob: fe45351ff707794aec2cb5a4e6e71b0e36b9ea2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash -e
name=hstcal
version=2.2.0
url="https://github.com/spacetelescope/${name}"

# Grab a version of WAF that isn't broken
curl -o waf https://waf.io/waf-2.0.12
chmod +x waf

git clone "${url}"
pushd "${name}" &>/dev/null
    git checkout "${version}"

    # Build / Install
    ../waf configure --prefix=${PREFIX} --release-with-symbols --with-cfitsio=${PREFIX}
    ../waf build
    ../waf install
popd &>/dev/null