python-chardet: bump to version 5.1.0
[feed/packages.git] / lang / python / python-chardet / Makefile
1 #
2 # Copyright (C) 2007-2017 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:=python-chardet
11 PKG_VERSION:=5.1.0
12 PKG_RELEASE:=1
13 PKG_LICENSE:=LGPL-2.1
14
15 PYPI_NAME:=chardet
16 PKG_HASH:=0d62712b956bc154f85fb0a266e2a3c5913c2967e00348701b32411d6def31e5
17
18 include ../pypi.mk
19 include $(INCLUDE_DIR)/package.mk
20 include ../python3-package.mk
21
22 define Package/python3-chardet
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
27 URL:=https://github.com/chardet/chardet
28 TITLE:=Universal encoding detector
29 DEPENDS:=+python3-light +python3-logging
30 endef
31
32 define Package/python3-chardet/description
33 Universal encoding detector for Python 2 and 3
34 endef
35
36 define Py3Package/python3-chardet/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
39 for bin in $(1)/usr/bin/*; do \
40 mv $$$$bin $$$${bin}3 ; \
41 $(LN) $$$${bin##*/}3 $$$$bin ; \
42 done
43 endef
44
45 $(eval $(call Py3Package,python3-chardet))
46 $(eval $(call BuildPackage,python3-chardet))
47 $(eval $(call BuildPackage,python3-chardet-src))