distribution/packages/sysutils/tz/package.mk

33 lines
940 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="tz"
PKG_VERSION="2019c"
PKG_SHA256="38b1f7c7a050daa14fb07f6b72cdde1fc895fece40758d4d55736847041ad9e2"
PKG_LICENSE="Public Domain"
PKG_SITE="http://www.iana.org/time-zones"
2023-02-24 13:53:43 +00:00
PKG_URL="https://github.com/eggert/tz/archive/${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Time zone and daylight-saving time data."
pre_configure_target() {
2023-02-24 13:53:43 +00:00
PKG_MAKE_OPTS_TARGET="CC=${HOST_CC} LDFLAGS="
2022-02-05 14:23:32 +00:00
}
makeinstall_target() {
2023-02-24 13:53:43 +00:00
make TZDIR="${INSTALL}/usr/share/zoneinfo" REDO=posix_only TOPDIR="${INSTALL}" install
2022-02-05 14:23:32 +00:00
}
post_makeinstall_target() {
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/usr/bin ${INSTALL}/usr/sbin
2022-02-05 14:23:32 +00:00
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/etc
mkdir -p ${INSTALL}/etc
ln -sf /var/run/localtime ${INSTALL}/etc/localtime
2022-02-05 14:23:32 +00:00
}
post_install() {
enable_service tz-data.service
}