From 74b69932c81e33156034bbb573352c992158496c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Oct 2013 17:17:51 -0400 Subject: source.mk: Make slightly more generic. The same file data is used by tzdata and tzcode. --- diff --git a/source.mk b/source.mk index 2914798..87681c4 100644 --- a/source.mk +++ b/source.mk @@ -1,6 +1,6 @@ -# The tzdata archive has no top-level directory, as opkbuild requires. +# The tz archives have no top-level directory, as opkbuild requires. -upstream_archive = tzdata$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz +upstream_archive = $(OPK_SOURCE)$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz upstream_url = ftp://ftp.iana.org/tz/releases/$(upstream_archive) source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz keys = 62AA7E34 @@ -16,10 +16,10 @@ $(source_archive): gpg --verify --keyring ../keyring.gpg \ '$(upstream_archive).asc'; \ fi - mkdir -p tzdata && cd tzdata && tar -xzf '../$(upstream_archive)' && \ + mkdir -p $(OPK_SOURCE) && cd $(OPK_SOURCE) && tar -xzf '../$(upstream_archive)' && \ cd .. rm -f '$(upstream_archive)' '$(upstream_archive).asc' - tar -czf '$(source_archive)' tzdata - mv tzdata src + tar -czf '$(source_archive)' $(OPK_SOURCE) + mv $(OPK_SOURCE) src source: $(source_archive) -- cgit v0.9.1