blob: 66b6bd45678e3ef2b9daa5ac8ab16f4b41344a43 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tzdata
pkgver=2015g
_tzcodever=2015g
_ptzver=0.5
pkgrel=0
pkgdesc="Timezone data"
url="http://www.twinsun.com/tz/tz-link.htm"
arch="all"
license="Public Domain"
depends=""
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://www.iana.org/time-zones/repository/releases/tzcode$_tzcodever.tar.gz
http://www.iana.org/time-zones/repository/releases/tzdata$pkgver.tar.gz
http://dev.alpinelinux.org/archive/posixtz/posixtz-$_ptzver.tar.xz
0001-posixtz-fix-up-lseek.patch"
_builddir="$srcdir"
_timezones="africa antarctica asia australasia europe northamerica \
southamerica pacificnew etcetera backward systemv factory"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1"
TZDIR="/usr/share/zoneinfo" || return 1
cd "$srcdir"/posixtz-$_ptzver
make posixtz || return 1
}
package() {
cd "$_builddir"
./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo ${_timezones}
./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo/right -L leapseconds ${_timezones}
#./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo/posix ${_timezones}
./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo -p America/New_York
install -m444 -t "$pkgdir"/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab
mkdir -p "$pkgdir"/usr/sbin
install -m755 zic zdump "$pkgdir"/usr/sbin || return 1
mkdir -p "$pkgdir"/usr/share/man/man8
install -m644 zic.8 zdump.8 "$pkgdir"/usr/share/man/man8 || return 1
rm -f "$pkgdir"/usr/share/zoneinfo/localtime || return 1
install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
"$pkgdir"/usr/bin/posixtz || return 1
}
md5sums="a2c47d908a6426f530efb1393cf1cd06 tzcode2015g.tar.gz
8d46e8b225b9a04c75f5c39636435ad6 tzdata2015g.tar.gz
80f8ae1df19dd28e1c8b192c6ea7b836 posixtz-0.5.tar.xz
ca177ded459c9d9c543b5d6ffcc6d6ac 0001-posixtz-fix-up-lseek.patch"
sha256sums="18e402ef24bfad2ded38643c9a7a9a580f940a729cb47d983052fc28ff0c7ec4 tzcode2015g.tar.gz
b923cdbf078491696b17bc8d069c74bce73fabc5774629da2f410c9b31576161 tzdata2015g.tar.gz
e0a79e0922be2da686a1888d79cd253baaf81c2f30b4378fbbcf9ff9d632aab5 posixtz-0.5.tar.xz
4e7496c015878226659c45f22adf3d556692993465c4b837a6f92829fede8b71 0001-posixtz-fix-up-lseek.patch"
sha512sums="44da833da3afdb82636a953785372bb4c765e61e40d700da40b46ab70007ebdbde4d480e10b87cbb36c45eaaffcaa6b9894375e2f553b7d16655dc167cd4a11f tzcode2015g.tar.gz
ad7de0e3e8753861d260f0fcbcbca327516a4dc826f7659370a7fb979e6154f1a26b23d2609acf6e1790c8c59da0b76c42f4a94bf361409c1460f6a8ffa6f879 tzdata2015g.tar.gz
68dbaab9f4aef166ac2f2d40b49366527b840bebe17a47599fe38345835e4adb8a767910745ece9c384b57af815a871243c3e261a29f41d71f8054df3061b3fd posixtz-0.5.tar.xz
f54ce213d74c5a8387e1a7c56299bc6eee65a035772288222128abc249a112067b8791b88b45c342b2d4d8d12e9e4f1f2f5c92c5de67f8b6413b1ebf1d7de467 0001-posixtz-fix-up-lseek.patch"
|