summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source.mk10
1 files changed, 5 insertions, 5 deletions
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)