summaryrefslogtreecommitdiff
path: root/etc/hstdp-snapshot/pkgs/001-cfitsio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/hstdp-snapshot/pkgs/001-cfitsio.sh')
-rw-r--r--etc/hstdp-snapshot/pkgs/001-cfitsio.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/hstdp-snapshot/pkgs/001-cfitsio.sh b/etc/hstdp-snapshot/pkgs/001-cfitsio.sh
new file mode 100644
index 0000000..719b542
--- /dev/null
+++ b/etc/hstdp-snapshot/pkgs/001-cfitsio.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -e
+
+name=cfitsio
+version=3440
+url=https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${name}${version}.tar.gz
+
+sudo yum install -y libcurl-devel
+curl -LO "${url}"
+tar xf "$(basename ${url})"
+
+pushd "${name}" &>/dev/null
+./configure --prefix="${PREFIX}" --enable-reentrant
+make shared
+make install
+popd &>/dev/null