gc: fix download

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-08-29 16:55:22 -07:00
parent 25780fa087
commit 92a09aeae4
1 changed files with 3 additions and 2 deletions

View File

@ -7,14 +7,15 @@ $(PKG)_VERSION := 7.2e
$(PKG)_CHECKSUM := 3ad593c6d0ed9c0951c21a657b86c55dab6365c8
$(PKG)_SUBDIR := $(PKG)-7.2
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.hpl.hp.com/personal/Hans_Boehm/$(PKG)/$(PKG)_source/$($(PKG)_FILE)
$(PKG)_URL := http://hboehm.info/$(PKG)/$(PKG)_source/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/?C=M;O=D' | \
$(WGET) -q -O- 'http://hboehm.info/gc/gc_source/' | \
grep '<a href="gc-' | \
$(SED) -n 's,.*<a href="gc-\([0-9][^"]*\)\.tar.*,\1,p' | \
grep -v 'alpha' | \
$(SORT) -Vr | \
head -1
endef