cppunit: Fix update macro

This commit is contained in:
Timothy Gu 2014-09-03 21:32:43 -07:00 committed by MXE
parent 34b7c9a22b
commit 51560cce78
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ $(PKG)_URL := http://dev-www.libreoffice.org/src/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/cppunit/files/cppunit/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
$(WGET) -q -O- 'http://dev-www.libreoffice.org/src/' | \
$(SED) -n 's,.*href="cppunit-\([0-9][^"]*\)\.tar.*,\1,p' | \
$(SORT) -Vr | \
head -1
endef