changeset 1252:e8ab66322da3

fix update macros for plotmm and sdl_sound
author Tony Theodore <tonyt@logyst.com>
date Sun, 03 Oct 2010 00:03:57 +1000
parents de6579fc47b7
children 0a34a9e5c605
files src/plotmm.mk src/sdl_sound.mk
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plotmm.mk	Sat Oct 02 23:25:29 2010 +1000
+++ b/src/plotmm.mk	Sun Oct 03 00:03:57 2010 +1000
@@ -14,7 +14,7 @@
 
 define $(PKG)_UPDATE
     $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/plotmm/files/plotmm/) | \
-    $(SED) -n 's,.*plotmm-\([0-9][^>]*\)-\.tar.*,\1,p' | \
+    $(SED) -n 's,.*plotmm-\([0-9][^>]*\)\.tar.*,\1,p' | \
     tail -1
 endef
 
--- a/src/sdl_sound.mk	Sat Oct 02 23:25:29 2010 +1000
+++ b/src/sdl_sound.mk	Sun Oct 03 00:03:57 2010 +1000
@@ -13,6 +13,10 @@
 $(PKG)_DEPS     := gcc sdl libmikmod ogg vorbis smpeg
 
 define $(PKG)_UPDATE
+    wget -q -O- 'http://hg.icculus.org/icculus/SDL_sound/tags' | \
+    grep 'release-' | \
+    $(SED) -n 's,.*release-\([0-9.]*\)<.*,\1,p' | \
+    head -1
 endef
 
 define $(PKG)_BUILD