packages hdf4 hdf5: add update script

This commit is contained in:
Tony Theodore 2012-12-12 22:12:26 +11:00
parent 43b01d903f
commit 417513d50e
2 changed files with 8 additions and 4 deletions

View File

@ -10,8 +10,10 @@ $(PKG)_URL := http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/$($(PKG)_FILE
$(PKG)_DEPS := gcc zlib jpeg portablexdr
define $(PKG)_UPDATE
echo 'TODO: write update script for $(PKG).' >&2;
echo $($(PKG)_VERSION)
$(WGET) -q -O- 'http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/' | \
grep '<a href.*hdf.*bz2' | \
$(SED) -n 's,.*hdf-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD

View File

@ -10,8 +10,10 @@ $(PKG)_URL := http://www.hdfgroup.org/ftp/HDF5/current/src/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib pthreads
define $(PKG)_UPDATE
echo 'TODO: write update script for $(PKG).' >&2;
echo $($(PKG)_VERSION)
$(WGET) -q -O- 'http://www.hdfgroup.org/ftp/HDF5/current/src/' | \
grep '<a href.*hdf5.*bz2' | \
$(SED) -n 's,.*hdf5-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD