Makefile (1222B)
1 # 2 # Copyright (C) 2007-2016 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=pytz 11 PKG_VERSION:=2016.6.1 12 PKG_RELEASE:=1 13 PKG_LICENSE:=MIT 14 15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 PKG_SOURCE_URL:=https://pypi.python.org/packages/5d/8e/6635d8f3f9f48c03bb925fab543383089858271f9cfd1216b83247e8df94/ 17 PKG_MD5SUM:=b6c28a3b968bc1d8badfb61b93874e03 18 PKG_BUILD_DEPENDS:=python python-setuptools 19 20 include $(INCLUDE_DIR)/package.mk 21 $(call include_mk, python-package.mk) 22 23 define Package/pytz 24 SUBMENU:=Python 25 SECTION:=lang 26 CATEGORY:=Languages 27 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com> 28 TITLE:=World timezone definitions, modern and historical 29 URL:=https://sourceforge.net/projects/pytz/ 30 DEPENDS:=+python 31 endef 32 33 define Package/pytz/description 34 World timezone definitions, modern and historical 35 endef 36 37 define Build/Compile 38 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 39 endef 40 41 define Package/pytz/install 42 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 43 $(CP) \ 44 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 45 $(1)$(PYTHON_PKG_DIR) 46 endef 47 48 $(eval $(call BuildPackage,pytz))