summaryrefslogtreecommitdiff
path: root/etc/jwstdp-snapshot/pkgs/002-fitsverify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/jwstdp-snapshot/pkgs/002-fitsverify.sh')
-rw-r--r--etc/jwstdp-snapshot/pkgs/002-fitsverify.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/jwstdp-snapshot/pkgs/002-fitsverify.sh b/etc/jwstdp-snapshot/pkgs/002-fitsverify.sh
new file mode 100644
index 0000000..424daf8
--- /dev/null
+++ b/etc/jwstdp-snapshot/pkgs/002-fitsverify.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+
+name=fitsverify
+version=4.19
+url=https://heasarc.gsfc.nasa.gov/docs/software/ftools/${name}/${name}-${version}.tar.gz
+
+curl -LO "${url}"
+tar xf "$(basename ${url})"
+
+pushd "${name}" &>/dev/null
+gcc -o ${name} ftverify.c fvrf_data.c fvrf_file.c fvrf_head.c \
+ fvrf_key.c fvrf_misc.c ${CFLAGS} -DSTANDALONE \
+ ${LDFLAGS} -lcfitsio -lm -lnsl
+
+install -m 755 -t "${TOOLCHAIN_BIN}" ${name}
+popd &>/dev/null