diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-03-23 11:11:55 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-03-23 11:11:55 (GMT) |
commit | dff5a376a1b3a0145f888357e35223b86a8d3e40 (patch) | |
tree | 9fadda710dc59e107bda0565b9a22a5ba1fd267f /src | |
parent | a4226be0af77ee2ff0fe6cd1937a19e1df56b127 (diff) | |
download | mxe-dff5a376a1b3a0145f888357e35223b86a8d3e40.zip mxe-dff5a376a1b3a0145f888357e35223b86a8d3e40.tar.gz mxe-dff5a376a1b3a0145f888357e35223b86a8d3e40.tar.bz2 |
package plib: add update macro
Diffstat (limited to 'src')
-rw-r--r-- | src/plib.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plib.mk b/src/plib.mk index 267c3f5..628cb99 100644 --- a/src/plib.mk +++ b/src/plib.mk @@ -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 |