2 # Copyright (C) 2007-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-chardet
16 PKG_HASH
:=0d62712b956bc154f85fb0a266e2a3c5913c2967e00348701b32411d6def31e5
19 include $(INCLUDE_DIR
)/package.mk
20 include ..
/python3-package.mk
22 define Package
/python3-chardet
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
32 define Package
/python3-chardet
/description
33 Universal encoding detector for Python
2 and
3
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 ; \
45 $(eval
$(call Py3Package
,python3-chardet
))
46 $(eval
$(call BuildPackage
,python3-chardet
))
47 $(eval
$(call BuildPackage
,python3-chardet-src
))