termcap: Fix update routine

This commit is contained in:
Timothy Gu 2015-06-18 19:45:28 -07:00
parent 90ff00c16b
commit 8d14d4e6a4
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,10 @@ $(PKG)_URL := http://ftp.gnu.org/gnu/termcap/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
/bin/false
$(WGET) -q -O- 'http://ftp.gnu.org/gnu/termcap/' | \
grep 'termcap-' | \
$(SED) -n 's,.*termcap-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD