-
Notifications
You must be signed in to change notification settings - Fork 71
Create zoneinfo-utils package #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 36 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
aa527a1
Create tzdata package
Eeems 30cc4cc
Update package
Eeems 781edf4
Update package
Eeems 0bdf9fa
Update package
Eeems 41dfc37
Update package
Eeems 468230c
Update package
Eeems 6b709ce
Update package
Eeems bded744
Update package
Eeems 5ed2fc4
Update package
Eeems b3d977b
Update package
Eeems 4f9220b
Update package-build
Eeems e39021d
Update package
Eeems b552319
Force workdir no longer be relative
Eeems d175e42
Update package
Eeems 0cf6479
Update package
Eeems bb02df0
Update package
Eeems 1ce33ec
Update package
Eeems e5b8bb7
Merge branch 'testing' into Eeems-patch-4
Eeems 3856b69
Merge branch 'testing' into Eeems-patch-4
Eeems 208ac35
Update package
Eeems d61513e
Fix build for arm
Eeems db3bca8
Use the latest zic to create files
Eeems ef3c08c
move zic to /opt/bin
Eeems ef4baef
Fix zic location
Eeems 8d58ca8
Merge branch 'testing' into Eeems-patch-4
Eeems b399088
Merge branch 'testing' into Eeems-patch-4
Eeems 4cded4f
Rename to zoneinfo-utils and remove zoneinfo data
Eeems 9634d0f
Update package
Eeems a17d89f
Update package
Eeems 07a906b
Update package
Eeems cb9f330
Merge branch 'testing' into Eeems-patch-4
matteodelabre 630eeb5
Merge branch 'testing' into Eeems-patch-4
Eeems c6ecbbd
Apply suggestions from code review
Eeems 0f8a92a
Update package
Eeems 3ce408b
Update package
Eeems 47d55c1
Update package
Eeems 7a321d9
Update package
Eeems 2f388eb
Merge branch 'testing' into Eeems-patch-4
Eeems File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2020 The Toltec Contributors | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| # Inspired by https://github.com/archlinux/svntogit-packages/blob/packages/tzdata/trunk/PKGBUILD | ||
|
|
||
| pkgnames=(zoneinfo-utils) | ||
| pkgdesc="Utilities for interacting with zoneinfo files" | ||
| url=https://www.iana.org/time-zones | ||
| _tzver=2020f | ||
| pkgver="$_tzver"-1 | ||
| timestamp=2020-05-04T06:16Z | ||
| section=utils | ||
| maintainer="Eeems <[email protected]>" | ||
| license="custom: public domain" | ||
| depends=() | ||
| image=base:v1.2.1 | ||
|
|
||
| source=( | ||
| "https://www.iana.org/time-zones/repository/releases/tzcode${_tzver}.tar.gz" | ||
| "https://www.iana.org/time-zones/repository/releases/tzdata${_tzver}.tar.gz" | ||
| ) | ||
| sha256sums=( | ||
| cfeeea2a7745164f64bd9f6d76e47916f4ac820c4434493674adbbd4324329c5 | ||
| 121131918c3ae6dc5d40f0eb87563a2be920b71a76e2392c09519a5e4a666881 | ||
| ) | ||
|
|
||
| prepare() { | ||
| sed -i "s:sbin:bin:" Makefile | ||
| } | ||
|
|
||
| build() { | ||
| # Upgrade gawk to latest to avoid a bug | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| apt-get update -y | ||
| apt-get install -y gawk | ||
|
|
||
| mkdir .x86 | ||
| pushd .x86 > /dev/null | ||
|
|
||
| shopt -s extglob | ||
| cp -r ../* . | ||
| make LFLAGS="${LDFLAGS}" | ||
|
|
||
| popd > /dev/null | ||
|
|
||
| make LFLAGS="${LDFLAGS}" CC=arm-linux-gnueabihf-cc | ||
| } | ||
|
|
||
| package() { | ||
| pushd "${srcdir}" > /dev/null | ||
| local zic=.x86/zic | ||
| # install tzcode stuff | ||
| make DESTDIR="${pkgdir}" zic="$zic" install | ||
| # install license | ||
| install -Dm644 LICENSE "${pkgdir}"/opt/usr/share/licenses/tzdata/LICENSE | ||
|
|
||
| popd > /dev/null | ||
|
|
||
| mv "${pkgdir}"/usr/{lib,share/man} "${pkgdir}"/opt/usr | ||
| mv "${pkgdir}"/usr/{s,}bin "${pkgdir}"/opt | ||
Eeems marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| install -D -m 644 -t "$pkgdir"/opt/share/zoneinfo "$srcdir"/iso3166.tab | ||
| install -D -m 644 -t "$pkgdir"/opt/share/zoneinfo "$srcdir"/zone1970.tab | ||
|
|
||
| # cleanup | ||
| rm -rf "${pkgdir:?}"/{etc,usr} | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.