68 lines
2.5 KiB
Bash
68 lines
2.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=tzdata
|
|
pkgver=2024a
|
|
_tzcode=2024a
|
|
_tzdata=2024a
|
|
pkgrel=02
|
|
pkgdesc="Sources for time zone and daylight saving time data"
|
|
url="https://www.iana.org/time-zones"
|
|
options=('!emptydirs')
|
|
optdepends=('bash: for tzselect'
|
|
'glibc: for zdump, zic')
|
|
source=(https://www.iana.org/time-zones/repository/releases/tzcode${_tzcode}.tar.gz{,.asc}
|
|
https://www.iana.org/time-zones/repository/releases/${pkgname}${_tzdata}.tar.gz{,.asc})
|
|
|
|
_timezones=('africa' 'antarctica' 'asia' 'australasia'
|
|
'europe' 'northamerica' 'southamerica'
|
|
'etcetera' 'backward' 'factory')
|
|
|
|
prepare() {
|
|
sed -i "s:sbin:bin:g" Makefile
|
|
}
|
|
|
|
build() {
|
|
make LFLAGS="${LDFLAGS} ${LTOFLAGS}"
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"
|
|
# install tzcode stuff
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# install tzdata stuff
|
|
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo ${_timezones[@]}
|
|
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/posix ${_timezones[@]}
|
|
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/right -L leapseconds ${_timezones[@]}
|
|
# This creates the posixrules file. We use New York because POSIX requires the daylight savings time rules to be in accordance with US rules.
|
|
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo -p America/New_York
|
|
install -m644 -t "${pkgdir}"/usr/share/zoneinfo iso3166.tab leap-seconds.list zone1970.tab zone.tab SECURITY # zone.tab is depricated and will go soon
|
|
|
|
# cleanup
|
|
rm "${pkgdir}/etc/localtime"
|
|
|
|
# install license
|
|
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
#license=('custom: public domain')
|
|
license=('LicenseRef-tz')
|
|
|
|
validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
|
|
|
|
sha256sums=(80072894adff5a458f1d143e16e4ca1d8b2a122c9c5399da482cb68cba6a1ff8 # tzcode2024a.tar.gz
|
|
2eebc38326a711da5f55f8b5fb37b11ac1193cfed0aee487837110919c84fdac # tzcode2024a.tar.gz.asc
|
|
0d0434459acbd2059a7a8da1f3304a84a86591f6ed69c6248fffa502b6edffe3 # tzdata2024a.tar.gz
|
|
f64725f9f65419e7b009e3b95b75ea9516382d0be64aef63d78654d9c569ed0d) # tzdata2024a.tar.gz.asc
|
|
|
|
## 4920bc17c8c7f91bbd57166f933d87ffc13643d065d25cbfa8671b8f1532e031 tzdata-2024a-02-x86_64.pkg.tar.lz
|
|
|