Commit | Line | Data |
---|---|---|
6214a1c8 VM |
1 | # Description: Sources for Time Zone and Daylight Saving Time Data |
2 | # URL: ftp://ftp.iana.org/tz/code/tz-link.htm | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
5 | ||
6 | name=tzdata | |
b7558847 | 7 | version=2018d |
6214a1c8 VM |
8 | release=1 |
9 | ||
10 | source=(http://www.iana.org/time-zones/repository/releases/$name$version.tar.gz | |
11 | http://www.iana.org/time-zones/repository/releases/tzcode$version.tar.gz | |
335daabe | 12 | zic_host-makefile.patch) |
6214a1c8 VM |
13 | |
14 | build() { | |
6214a1c8 VM |
15 | # first compile native zic binary |
16 | make CFLAGS="" CC="gcc" zic | |
17 | cp zic zic_host | |
18 | make clean | |
19 | ||
335daabe VM |
20 | patch -p1 -i $SRC/zic_host-makefile.patch |
21 | ||
b7558847 VM |
22 | make CFLAGS="$CFLAGS" CC=$CC AR=$AR |
23 | make DESTDIR=$PKG install CC=$CC AR=$AR | |
335daabe VM |
24 | |
25 | # provided by man-pages | |
26 | rm -r $PKG/usr/share/man/man{5,8} | |
27 | ||
b7558847 VM |
28 | # conflict with glibc |
29 | rm $PKG/etc/localtime | |
30 | rmdir $PKG/etc | |
6214a1c8 | 31 | } |