summaryrefslogtreecommitdiffstats
path: root/main/tzdata/APKBUILD
blob: 03f2e750dd27c344fea92760b7ea6c185f42defe (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=2013h
_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://dev.alpinelinux.org/archive/posixtz/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
d310abe42cbe87e76ceb69e2c7003c92  tzdata2013h.tar.gz
99efce32b3f870e1b071ce47f3a98a18  posixtz-0.3.tar.bz2
c2e1116e7e689b880c6cfaa8c2925bd0  Makefile.patch
0b4d86d855f7daa3f79c9f28f04a48f9  0001-posixtz-fix-up-lseek.patch"
sha256sums="c7c358b459bb65cfab7b7bdd6a9689233fc393f1f9fdf4f0f46ca7dac5a9587b  tzcode2013g.tar.gz
6b9e17e823eec0e09e12f74b452a70be4face1ef14c2fb1917b7c7e60564de27  tzdata2013h.tar.gz
574a765e0569458d7ccb76e97b3a96de2f0c19ad093c6811675b8a57f7088a53  posixtz-0.3.tar.bz2
a10ba18bcba80de1b4d66016a109a2131876319d81b738780f6add45e1acb2af  Makefile.patch
e0b6de6a3d389f96dc95e5b75c2ada9afc63858e3770a0f07a62e1e56a77561e  0001-posixtz-fix-up-lseek.patch"
sha512sums="dd4475916fe36609155d72cfe434b387455ba860cee15fbbbb5caf37cc77757d467c4ae80e81396280e8d3fb68e131373151e8d0eee9bbf8674b96f99e0a9cbd  tzcode2013g.tar.gz
4f584e4a71726182e9cc2f13baea2f02b15f4c5603595f6493318a3920903074ad0b073b4c6f888baa33f648422a02600a6fd8d3345120f45da0f5d5453fb8d8  tzdata2013h.tar.gz
57dfd38a4050230e49ec9a23bfec5e995dd48ed1fa338a72c4d2c3b86590d4c7357d3dc6d12b4f1564beebcf48f0d0ed855574e4ba29268160d8f84928a477fd  posixtz-0.3.tar.bz2
19e2f3891aece9d30a6dfc386134884d4e89c638db00cf99614a639c7372ce4e861cb4cf78fd7a2d592ea0e446e7884775718e47899ef98fab4c6e2987e07881  Makefile.patch
c7ddb4eecf8e55e6153f641d478a3affa2522e093e94e95e2ee43039a5c6eed28dcc472bcaa3a7c7c1b84747744c25028467e0048765ef0fc75b89345fc29318  0001-posixtz-fix-up-lseek.patch"