123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- set -e
- program=tzdb
- version=2021e
- release=1
- pkgcategory=db
- tarname=${program}-${version}.tar.lz
- fetch=https://www.iana.org/time-zones/repository/releases/$tarname
- description="
- Time zone database.
- The Time Zone Database (often called tz or zoneinfo) contains code and
- data that represent the history of local time for many representative
- locations around the globe. It is updated periodically to reflect
- changes made by political bodies to time zone boundaries, UTC offsets,
- and daylight-saving rules. Its management procedure is documented in
- BCP 175: Procedures for Maintaining the Time Zone Database.
- "
- homepage=https://www.iana.org/time-zones
- license="Public domain | BSD"
- docs="CONTRIBUTING LICENSE NEWS README"
- docsdir="${docdir}/${program}-${version}"
- jobs=1
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- make -j${jobs} CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS -static" \
- TOPDIR=/ \
- TZDIR=/etc/zoneinfo \
- ETCDIR=/usr/sbin \
- LIBDIR=/usr/lib${libSuffix} \
- MANDIR=$mandir \
- KSHELL="/bin/sh -" \
- DESTDIR="$destdir" install
-
-
-
- rm -f \
- "${destdir}/usr/bin/tzselect" \
- "${destdir}/etc/localtime" \
- "${destdir}/etc/zoneinfo-posix"
-
-
-
- find "${destdir}"/etc/zoneinfo* -type d -print | \
- while read -r directory
- do
- ( cd -- "$directory" && touch .nograft )
- done
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|