ccfits: Add update routine

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-12-12 22:39:26 -05:00
parent db8326927a
commit f81e211836
1 changed files with 4 additions and 2 deletions

View File

@ -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