summaryrefslogtreecommitdiff
path: root/python-chardet/Makefile
blob: ed44fcf5535b0837252c20aa84ff23fad38b6df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=python-chardet
PKG_VERSION:=3.0.4
PKG_RELEASE:=1

PKG_SOURCE_URL:=https://pypi.python.org/packages/source/c/chardet/
PKG_SOURCE:=chardet-$(PKG_VERSION).tar.gz
PKG_HASH:=84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae
PKG_LICENSE:=GPLv2.1
PKG_BUILD_DIR:=$(BUILD_DIR)/chardet-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/python3-chardet
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Python
  URL:=https://github.com/chardet/chardet
  TITLE:=python3-chardet
  DEPENDS:=+python3-light
  VARIANT:=python3
endef

define Package/python-chardet/description
  The Universal Character Encoding Detector
endef

$(eval $(call Py3Package,python3-chardet))
$(eval $(call BuildPackage,python3-chardet))
$(eval $(call BuildPackage,python3-chardet-src))