80 lines
3.2 KiB
Bash
80 lines
3.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=tzdata
|
|
pkgver=2024b
|
|
_tzcode=2024b
|
|
_tzdata=2024b
|
|
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}
|
|
0001-Apr-not-April.patch)
|
|
|
|
_timezones=('africa' 'antarctica' 'asia' 'australasia'
|
|
'europe' 'northamerica' 'southamerica'
|
|
'etcetera' 'backward' 'factory')
|
|
|
|
prepare() {
|
|
sed -i "s:sbin:bin:g" Makefile
|
|
pwd
|
|
# Use "Apr", not "April", in the IN column
|
|
patch -Np1 -i ${srcdir}/0001-Apr-not-April.patch
|
|
|
|
}
|
|
|
|
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>
|
|
|
|
|
|
sha512sums=('0e4e872d6c6d9e2ce8c4e567fcbb7658942b8544157d1e48673d9cb989f3af3379fa58e7a71ab98f4a8f2ac6727de1f8c4cd1981053409ebd8989345dc640026'
|
|
'SKIP'
|
|
'0d86686e215672343debb3471b7e7ccb8a27f063f085c9b532d5e0470377843daa0dfb6aee0db4fb9068dd52810c69aeee914a1a7c7e603fdecda7e855020193'
|
|
'SKIP'
|
|
'19b546392fd0c8c6c2c535ca4e0d83baeef2741ee93cf58d9d8dc4f06d30e69bb47883652d2b3e23838f41d0a8600dbcfb2286bb11d107fb3f4a98920ca9bbcf')
|
|
|
|
sha256sums=(5e438fc449624906af16a18ff4573739f0cda9862e5ec28d3bcb19cbaed0f672 # tzcode2024b.tar.gz
|
|
321136b59e3032f74a08d7cba943e14d15cfd0a97bb86783629f56746e778960 # tzcode2024b.tar.gz.asc
|
|
70e754db126a8d0db3d16d6b4cb5f7ec1e04d5f261255e4558a67fe92d39e550 # tzdata2024b.tar.gz
|
|
5bc86ae1ee1f600eefefd5377faf5519d4863c960efb625286638d077178d883 # tzdata2024b.tar.gz.asc
|
|
54d8edcaa80cd71535c8c0528fa5dde6ba1d87bb1db8389d55499e6efbfca6b2) # 0001-Apr-not-April.patch
|
|
|
|
## b430940ccda2349e3eb3dc1738c65b50ea1ba500441d252c77233de6f1198ee8 tzdata-2024b-02-x86_64.pkg.tar.lz
|