package ocaml-native: fix download url and update script

This commit is contained in:
Tony Theodore 2012-12-12 22:45:27 +11:00
parent f938a64109
commit 1223f88687
1 changed files with 4 additions and 4 deletions

View File

@ -6,13 +6,13 @@ $(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 9653e76dd14f0fbb750d7b438415890ab9fe2f4e
$(PKG)_SUBDIR := ocaml-$($(PKG)_VERSION)
$(PKG)_FILE := ocaml-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://caml.inria.fr/pub/distrib/ocaml-4.00/$($(PKG)_FILE)
$(PKG)_URL := http://caml.inria.fr/pub/distrib/ocaml-$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://caml.inria.fr/pub/distrib/ocaml-3.12' | \
$(SED) -n 's,.*ocaml-\([0-9][^>]*\)\.tar.*,\1,ip' | \
tail -1
wget -q -O- 'http://caml.inria.fr/download.en.html' | \
$(SED) -n 's,.*ocaml-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD