mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-06 06:02:14 +01:00
65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=tzdata
|
|
pkgver=2019a
|
|
_tzcodever=2019a
|
|
_ptzver=0.5
|
|
pkgrel=0
|
|
pkgdesc="Timezone data"
|
|
url="https://www.iana.org/time-zones"
|
|
arch="all"
|
|
license="Public-Domain"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends=""
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="https://www.iana.org/time-zones/repository/releases/tzcode$_tzcodever.tar.gz
|
|
https://www.iana.org/time-zones/repository/releases/tzdata$pkgver.tar.gz
|
|
https://dev.alpinelinux.org/archive/posixtz/posixtz-$_ptzver.tar.xz
|
|
|
|
0001-posixtz-ensure-the-file-offset-we-pass-to-lseek-is-o.patch
|
|
0002-fix-implicit-declaration-warnings-by-including-strin.patch"
|
|
|
|
builddir="$srcdir"
|
|
_timezones="africa antarctica asia australasia europe northamerica \
|
|
southamerica pacificnew etcetera backward systemv factory"
|
|
options="!check" # Testsuite require nsgmls (SP)
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1"
|
|
TZDIR="/usr/share/zoneinfo"
|
|
|
|
cd "$builddir"/posixtz-$_ptzver
|
|
make posixtz
|
|
}
|
|
|
|
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
|
|
|
|
mkdir -p "$pkgdir"/usr/share/man/man8
|
|
install -m644 zic.8 zdump.8 "$pkgdir"/usr/share/man/man8
|
|
|
|
rm -f "$pkgdir"/usr/share/zoneinfo/localtime
|
|
install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \
|
|
"$pkgdir"/usr/bin/posixtz
|
|
}
|
|
|
|
sha512sums="7cc76ce6be4a67c3e1b2222cb632d2de9dabb76899793a938f87a1d4bb20e462cabdae9e3b986aaabaa400795370510095d236dbad5aff4c192d0887f0ecedf5 tzcode2019a.tar.gz
|
|
d8eb5b2b68abee08bd2b0d2134bce85b5c0aee85168e9697a607604ed5be7d1539ac60fda9b37e0c9c793ef6251978bc250563a0af59497fde775499964bb5aa tzdata2019a.tar.gz
|
|
68dbaab9f4aef166ac2f2d40b49366527b840bebe17a47599fe38345835e4adb8a767910745ece9c384b57af815a871243c3e261a29f41d71f8054df3061b3fd posixtz-0.5.tar.xz
|
|
0f2a10ee2bb4007f57b59123d1a0b8ef6accf99e568f21537f0bb19f290fff46e24050f55f12569d7787be600e1b62aa790ea85a333153f3ea081a812c81b1b5 0001-posixtz-ensure-the-file-offset-we-pass-to-lseek-is-o.patch
|
|
fb322ab7867517ba39265d56d3576cbcea107c205d524e87015c1819bbb7361f7322232ee3b86ea9b8df2886e7e06a6424e3ac83b2006be290a33856c7d40ac4 0002-fix-implicit-declaration-warnings-by-including-strin.patch"
|