1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/sysutils/tz/package.mk
2024-02-02 02:59:24 +00:00

33 lines
948 B
Makefile

# 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="2024a"
PKG_SHA256="1f562444eb9a646ac9eb4cf7ed9a149e00f7834e373032dd0b2cc773341924a8"
PKG_LICENSE="Public Domain"
PKG_SITE="http://www.iana.org/time-zones"
PKG_URL="https://github.com/eggert/tz/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Time zone and daylight-saving time data."
pre_configure_target() {
PKG_MAKE_OPTS_TARGET="CC=${HOST_CC} CFLAGS= LDFLAGS="
}
makeinstall_target() {
make TZDIR="${INSTALL}/usr/share/zoneinfo" REDO=posix_only TOPDIR="${INSTALL}" install
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin ${INSTALL}/usr/sbin
rm -rf ${INSTALL}/etc
mkdir -p ${INSTALL}/etc
ln -sf /var/run/localtime ${INSTALL}/etc/localtime
}
post_install() {
enable_service tz-data.service
}