summaryrefslogtreecommitdiff
path: root/etc/hstdp-snapshot/pkgs/002-hstcal.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/hstdp-snapshot/pkgs/002-hstcal.sh')
-rw-r--r--etc/hstdp-snapshot/pkgs/002-hstcal.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/hstdp-snapshot/pkgs/002-hstcal.sh b/etc/hstdp-snapshot/pkgs/002-hstcal.sh
new file mode 100644
index 0000000..fe45351
--- /dev/null
+++ b/etc/hstdp-snapshot/pkgs/002-hstcal.sh
@@ -0,0 +1,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