aboutsummaryrefslogtreecommitdiffstats
path: root/main/tzdata/APKBUILD
blob: 667a273a7462858aba926335bd2943f5e25e9a68 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tzdata
pkgver=2013g
_tzcodever=2013g
_ptzver=0.3
pkgrel=0
pkgdesc="Timezone data"
url="http://www.twinsun.com/tz/tz-link.htm"
arch="all"
license="Public Domain"
depends=
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://git.alpinelinux.org/cgit/ncopa/posixtz/snapshot/posixtz-$_ptzver.tar.bz2
	Makefile.patch
	0001-posixtz-fix-up-lseek.patch"

_builddir="$srcdir"
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 || return 1

	cd "$srcdir"/posixtz-$_ptzver
	make posixtz
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" \
		install || return 1
	rm -f "$pkgdir"/usr/share/zoneinfo/localtime

	rm "$pkgdir"/usr/bin/tzselect || return 1
	install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
		"$pkgdir"/usr/bin/posixtz || return 1
}

md5sums="cc2a52297310ba1a673dc60973ea3ad8  tzcode2013g.tar.gz
76dbc3b5a81913fc0d824376c44a5d15  tzdata2013g.tar.gz
fa56ee6f978f53448689b0ff4c9ba793  posixtz-0.3.tar.bz2
8c44bb07b4e86568f5ed4bdf10de6a0f  Makefile.patch
0b4d86d855f7daa3f79c9f28f04a48f9  0001-posixtz-fix-up-lseek.patch"
sha256sums="c7c358b459bb65cfab7b7bdd6a9689233fc393f1f9fdf4f0f46ca7dac5a9587b  tzcode2013g.tar.gz
b6cdd3998dcc732a6ae5e101e1394f9d4d6dff68bd48a8fb78c44c2b997d3a4f  tzdata2013g.tar.gz
5f9d8eb45444c68d8dd4f4b9cbe1b07dac0448cc3797272e510f15c0add53f35  posixtz-0.3.tar.bz2
7437b00386ee673467e0fa01a0dbae1a3a32d709e444443c1eefd00b890ed725  Makefile.patch
e0b6de6a3d389f96dc95e5b75c2ada9afc63858e3770a0f07a62e1e56a77561e  0001-posixtz-fix-up-lseek.patch"
sha512sums="dd4475916fe36609155d72cfe434b387455ba860cee15fbbbb5caf37cc77757d467c4ae80e81396280e8d3fb68e131373151e8d0eee9bbf8674b96f99e0a9cbd  tzcode2013g.tar.gz
84107da6eb8bbc9063b06e422eb6ef4a5952039b90b4c86f6cc6ccecb370d1482dddf8be472d498b98cbb3ac6f7a0ed374f8b83613989a7d7a3a228b8910ac71  tzdata2013g.tar.gz
a1cdc10ca1b945ff4ec1cd5d4d2153d34911c95a43a0d899539bc27d751a4be1a81014ee0f49de074ccaafc3dcf6174a650f171ab3882bb0b601db1718533d7f  posixtz-0.3.tar.bz2
5ab04af020cca764179885f7c7b93402bc16a625a92acdde0e52ba56552aaa04c50723d2e0f98e13d7090a1a34b450818a86119d20301e2b8518bccc0cbdd10f  Makefile.patch
c7ddb4eecf8e55e6153f641d478a3affa2522e093e94e95e2ee43039a5c6eed28dcc472bcaa3a7c7c1b84747744c25028467e0048765ef0fc75b89345fc29318  0001-posixtz-fix-up-lseek.patch"