blob: 87681c4e712e3c3190b8e5c479d704d60bfb4c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# The tz archives have no top-level directory, as opkbuild requires.
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
$(source_archive):
wget -c '$(upstream_url)'
set -e; if gpg --version >/dev/null 2>&1; then \
wget -c '$(upstream_url).asc'; \
[ -e ../keyring.gpg ] || \
gpg --keyring ../keyring.gpg --no-default-keyring \
--recv-keys $(keys) || true; \
rm -f ../keyring.gpg~; \
gpg --verify --keyring ../keyring.gpg \
'$(upstream_archive).asc'; \
fi
mkdir -p $(OPK_SOURCE) && cd $(OPK_SOURCE) && tar -xzf '../$(upstream_archive)' && \
cd ..
rm -f '$(upstream_archive)' '$(upstream_archive).asc'
tar -czf '$(source_archive)' $(OPK_SOURCE)
mv $(OPK_SOURCE) src
source: $(source_archive)
|