2011-01-09 18:44:39 +01:00
|
|
|
################################################################################
|
|
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2016-01-02 17:29:56 +01:00
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 18:44:39 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is free software: you can redistribute it and/or modify
|
2011-01-09 18:44:39 +01:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2013-12-21 21:51:48 +01:00
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
2011-01-09 18:44:39 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is distributed in the hope that it will be useful,
|
2011-01-09 18:44:39 +01:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2013-12-21 21:51:48 +01:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2011-01-09 18:44:39 +01:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2013-12-21 21:51:48 +01:00
|
|
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
2011-01-09 18:44:39 +01:00
|
|
|
################################################################################
|
|
|
|
|
|
2016-11-15 23:16:11 -08:00
|
|
|
PKG_NAME="tz"
|
2017-11-12 06:17:22 +00:00
|
|
|
PKG_VERSION="2017c"
|
|
|
|
|
PKG_SHA256="83d1c6a5910e827db88528a1a1f6f7b4ad9fe98b6076895749bf49660b02cc68"
|
2010-10-29 18:33:19 +02:00
|
|
|
PKG_ARCH="any"
|
|
|
|
|
PKG_LICENSE="Public Domain"
|
2016-02-06 11:16:55 +01:00
|
|
|
PKG_SITE="http://www.iana.org/time-zones"
|
2016-11-15 23:16:11 -08:00
|
|
|
PKG_URL="https://github.com/eggert/tz/archive/$PKG_VERSION.tar.gz"
|
2014-01-30 14:31:10 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2010-10-29 18:33:19 +02:00
|
|
|
PKG_SECTION="system"
|
2016-11-15 23:16:11 -08:00
|
|
|
PKG_SHORTDESC="tzdata"
|
|
|
|
|
PKG_LONGDESC="tzdata"
|
2013-08-12 02:14:23 +02:00
|
|
|
|
2016-11-15 23:16:11 -08:00
|
|
|
PKG_MAKE_OPTS_TARGET="CC=$HOST_CC LDFLAGS="
|
2013-08-12 02:14:23 +02:00
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2016-11-15 23:16:11 -08:00
|
|
|
make TOPDIR="$INSTALL" install
|
2013-08-12 02:14:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
|
mkdir -p $INSTALL/usr/share/zoneinfo
|
2016-11-15 23:16:11 -08:00
|
|
|
mv $INSTALL/etc/zoneinfo/* $INSTALL/usr/share/zoneinfo
|
2013-08-12 02:14:23 +02:00
|
|
|
|
|
|
|
|
rm -rf $INSTALL/etc
|
|
|
|
|
mkdir -p $INSTALL/etc
|
|
|
|
|
ln -sf /var/run/localtime $INSTALL/etc/localtime
|
2013-08-12 13:26:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
|
enable_service tz-data.service
|
2013-08-12 02:14:23 +02:00
|
|
|
}
|