summaryrefslogtreecommitdiffstats
path: root/src/ccfits.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-12-13 03:39:26 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-12-13 03:39:26 (GMT)
commitf81e211836c80fdccd759ab94dff3cb288e3d423 (patch)
treea0871f8a2e20a6ddcb9095307ce424f91193591a /src/ccfits.mk
parentdb8326927a79bd9807d533aee45199acdcd34529 (diff)
downloadmxe-f81e211836c80fdccd759ab94dff3cb288e3d423.zip
mxe-f81e211836c80fdccd759ab94dff3cb288e3d423.tar.gz
mxe-f81e211836c80fdccd759ab94dff3cb288e3d423.tar.bz2
ccfits: Add update routine
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/ccfits.mk')
-rwxr-xr-xsrc/ccfits.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ccfits.mk b/src/ccfits.mk
index c1b0fdc..0084b70 100755
--- a/src/ccfits.mk
+++ b/src/ccfits.mk
@@ -11,8 +11,10 @@ $(PKG)_URL := https://heasarc.gsfc.nasa.gov/fitsio/CCfits/$($(PKG)_FILE)
$(PKG)_DEPS := gcc cfitsio
define $(PKG)_UPDATE
- echo 'TODO: write update script for $(PKG).' >&2;
- echo $($(PKG)_VERSION)
+ $(WGET) -q -O- "http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/" | \
+ grep -i '<a href="CCfits.*tar' | \
+ $(SED) -n 's,.*CCfits-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
endef
define $(PKG)_BUILD