APKBUILD 2.61 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tzdata
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=2015f
5
_tzcodever=2013g
6
_ptzver=0.3
Natanael Copa's avatar
Natanael Copa committed
7
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12 13 14 15
pkgdesc="Timezone data"
url="http://www.twinsun.com/tz/tz-link.htm"
arch="all"
license="Public Domain"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
16 17
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
18
	http://dev.alpinelinux.org/archive/posixtz/posixtz-$_ptzver.tar.bz2
19 20
	Makefile.patch
	0001-posixtz-fix-up-lseek.patch"
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34

_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"
Timo Teräs's avatar
Timo Teräs committed
35
	make CFLAGS="$CFLAGS -DHAVE_STDINT_H=1" || return 1
36 37 38

	cd "$srcdir"/posixtz-$_ptzver
	make posixtz
Natanael Copa's avatar
Natanael Copa committed
39 40 41 42
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
43 44
	make DESTDIR="$pkgdir" \
		install || return 1
Natanael Copa's avatar
Natanael Copa committed
45
	rm -f "$pkgdir"/usr/share/zoneinfo/localtime
Natanael Copa's avatar
Natanael Copa committed
46 47 48 49

	rm "$pkgdir"/usr/bin/tzselect || return 1
	install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
		"$pkgdir"/usr/bin/posixtz || return 1
Natanael Copa's avatar
Natanael Copa committed
50 51
}

52
md5sums="cc2a52297310ba1a673dc60973ea3ad8  tzcode2013g.tar.gz
Natanael Copa's avatar
Natanael Copa committed
53
e3b82732d20e973e48af1c6f13df9a1d  tzdata2015f.tar.gz
Natanael Copa's avatar
Natanael Copa committed
54
99efce32b3f870e1b071ce47f3a98a18  posixtz-0.3.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
55
126e34b1ae9104153082137c14edd72f  Makefile.patch
Ariadne Conill's avatar
Ariadne Conill committed
56
0b4d86d855f7daa3f79c9f28f04a48f9  0001-posixtz-fix-up-lseek.patch"
57
sha256sums="c7c358b459bb65cfab7b7bdd6a9689233fc393f1f9fdf4f0f46ca7dac5a9587b  tzcode2013g.tar.gz
Natanael Copa's avatar
Natanael Copa committed
58
959f81b541e042ecb13c50097d264ae92ff03a57979c478dbcf24d5da242531d  tzdata2015f.tar.gz
Natanael Copa's avatar
Natanael Copa committed
59
574a765e0569458d7ccb76e97b3a96de2f0c19ad093c6811675b8a57f7088a53  posixtz-0.3.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
60
0b39b50eb3c94bbd2cad353a45a9574b1aa514a919ae46e6a98aec725a6363dd  Makefile.patch
Natanael Copa's avatar
Natanael Copa committed
61
e0b6de6a3d389f96dc95e5b75c2ada9afc63858e3770a0f07a62e1e56a77561e  0001-posixtz-fix-up-lseek.patch"
62
sha512sums="dd4475916fe36609155d72cfe434b387455ba860cee15fbbbb5caf37cc77757d467c4ae80e81396280e8d3fb68e131373151e8d0eee9bbf8674b96f99e0a9cbd  tzcode2013g.tar.gz
Natanael Copa's avatar
Natanael Copa committed
63
d86e6c9e4c6d9cd5de30762723d7a90ac697feeb6dd1f04649f6a35e4e1dc638261c32066db4aeafa767ac339ccd100c38dde044ceadd61e95cb3d39c27f977e  tzdata2015f.tar.gz
Natanael Copa's avatar
Natanael Copa committed
64
57dfd38a4050230e49ec9a23bfec5e995dd48ed1fa338a72c4d2c3b86590d4c7357d3dc6d12b4f1564beebcf48f0d0ed855574e4ba29268160d8f84928a477fd  posixtz-0.3.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
65
b70f31600060382cd834fa8aa7567c198be55f32e7ad8b1384f8fed1d682d45406264311550f67db6277ab8b64e5394afcf4b55ab9d8f8000c56031485e7512b  Makefile.patch
Natanael Copa's avatar
Natanael Copa committed
66
c7ddb4eecf8e55e6153f641d478a3affa2522e093e94e95e2ee43039a5c6eed28dcc472bcaa3a7c7c1b84747744c25028467e0048765ef0fc75b89345fc29318  0001-posixtz-fix-up-lseek.patch"