CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libmpfr: updated to 4.0.1
[crossrootfs.git] / tzdata / Pkgfile
CommitLineData
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
6name=tzdata
442b415b 7version=2016j
6214a1c8
VM
8release=1
9
10source=(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
442b415b 12 zic_host-makefile.patch)
6214a1c8
VM
13
14build() {
6214a1c8
VM
15 # first compile native zic binary
16 make CFLAGS="" CC="gcc" zic
17 cp zic zic_host
18 make clean
19
442b415b
VM
20 patch -p1 -i $SRC/zic_host-makefile.patch
21
22 make -j1 install \
23 CFLAGS="$CFLAGS" \
24 DESTDIR=$PKG \
25 TOPDIR=/usr \
26 TZDIR=/usr/share/zoneinfo \
27 ETCDIR=/usr/sbin \
28 MANDIR=/usr/share/man \
29 CC=$CC AR=$AR
30
31 # provided by man-pages
32 rm -r $PKG/usr/share/man/man{5,8}
33
34 # move tzselect to /usr/bin
35 install -d $PKG/usr/bin
36 mv $PKG/usr/{sbin/tzselect,bin}
6214a1c8 37}