Files
Arch-R/packages/sysutils/timezone-data/package.mk
T

62 lines
1.8 KiB
Makefile
Raw Normal View History

2011-01-09 18:44:39 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2013-12-21 21:51:48 +01:00
# Copyright (C) 2009-2014 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
################################################################################
PKG_NAME="timezone-data"
PKG_VERSION="2013d"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="Public Domain"
PKG_SITE="ftp://elsie.nci.nih.gov/pub/"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="system"
PKG_SHORTDESC="timezone-data"
PKG_LONGDESC="timezone-data"
2010-11-25 18:16:06 +01:00
PKG_IS_ADDON="no"
2010-11-25 18:16:06 +01:00
PKG_AUTORECONF="no"
make_target() {
setup_toolchain host
make CC="$HOST_CC" CFLAGS="$HOST_CFLAGS"
}
makeinstall_target() {
make TOPDIR="./.install_pkg" install
}
post_makeinstall_target() {
mkdir -p $INSTALL/usr/share/zoneinfo
mv $INSTALL/etc/zoneinfo/* $INSTALL/usr/share/zoneinfo
rm -rf $INSTALL/man
rm -rf $INSTALL/etc
mkdir -p $INSTALL/etc
ln -sf /var/run/localtime $INSTALL/etc/localtime
2013-08-12 13:26:42 +02:00
mkdir -p $INSTALL/usr/lib/openelec
cp -PR $PKG_DIR/scripts/tzdata-setup $INSTALL/usr/lib/openelec
}
post_install() {
enable_service tz-data.service
}