mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=tzdata
|
|
pkgver=2011n
|
|
_tzcodever=2011i
|
|
_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
|
|
|
|
install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
|
|
"$pkgdir"/usr/bin/posixtz
|
|
}
|
|
|
|
md5sums="cf7f4335b7c8682899fa2814e711c1b2 tzcode2011i.tar.gz
|
|
20dbfb28efa008ddbf6dd34601ea40fa tzdata2011n.tar.gz
|
|
99efce32b3f870e1b071ce47f3a98a18 posixtz-0.3.tar.bz2
|
|
a64ed97d1fc03c66ee8612c0d9f40507 Makefile.patch
|
|
0b4d86d855f7daa3f79c9f28f04a48f9 0001-posixtz-fix-up-lseek.patch"
|