package plib: add update macro

This commit is contained in:
Tony Theodore 2013-03-23 22:11:55 +11:00
parent a4226be0af
commit dff5a376a1
1 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,11 @@ $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_V
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
echo 'TODO: write update script for $(PKG).' >&2;
echo $($(PKG)_VERSION)
$(WGET) -q -O- "http://plib.sourceforge.net/download.html" | \
grep -i '<a href=.*tar' | \
$(SED) -n 's,.*plib-\([0-9][^>]*\)\.tar.*,\1,p' | \
grep -v 'rc' | \
head -1
endef
define $(PKG)_BUILD