61 lines
2.3 KiB
Bash
61 lines
2.3 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=2022d
|
|
_tzcode=2022d
|
|
_tzdata=2022d
|
|
pkgrel=01
|
|
pkgdesc="Sources for time zone and daylight saving time data"
|
|
arch=('x86_64')
|
|
url="https://www.iana.org/time-zones"
|
|
options=('!emptydirs')
|
|
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
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('custom: public domain')
|
|
|
|
validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
|
|
|
|
sha256sums=(d644ba0f938899374ea8cb554e35fb4afa0f7bd7b716c61777cd00500b8759e0 # tzcode2022d.tar.gz
|
|
7005806f72fc39d17c0f58ee69317a61ef41b9db4a35d89970bc23a981323613 # tzcode2022d.tar.gz.asc
|
|
6ecdbee27fa43dcfa49f3d4fd8bb1dfef54c90da1abcd82c9abcf2dc4f321de0 # tzdata2022d.tar.gz
|
|
abbd3cccccb19c06890b2185d987895157bcd75a4e4be8cdc96077ccf8cac3dd) # tzdata2022d.tar.gz.asc
|