package pthreads: fix update macro

This commit is contained in:
Mark Brand 2012-10-11 16:29:24 +02:00
parent 99d3ef31ec
commit 5dcb2f1531
1 changed files with 2 additions and 4 deletions

View File

@ -10,10 +10,8 @@ $(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | \
$(SED) -n 's,^RELEASE \([0-9][^[:space:]]*\).*,\1,p' | \
tr '.' '-' | \
head -1
$(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \
$(SED) -n 's/^#define PTW32_VERSION \([^,]*\),\([^,]*\),\([^,]*\),.*/\1-\2-\3/p;'
endef
define $(PKG)_BUILD