fwknop: init script improvements
[feed/packages.git] / lang / python / python-qrcode / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=python-qrcode
9 PKG_VERSION:=6.1
10 PKG_RELEASE:=2
11
12 PYPI_NAME:=qrcode
13 PKG_HASH:=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
14
15 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
16 PKG_LICENSE:=BSD-3-Clause
17 PKG_LICENSE_FILES:=LICENSE
18
19 include ../pypi.mk
20 include $(INCLUDE_DIR)/package.mk
21 include ../python-package.mk
22 include ../python3-package.mk
23
24 define Package/python-qrcode/Default
25 SECTION:=lang
26 CATEGORY:=Languages
27 SUBMENU:=Python
28 TITLE:=QR Code image generator
29 URL:=https://github.com/lincolnloop/python-qrcode
30 endef
31
32 define Package/python-qrcode
33 $(call Package/python-qrcode/Default)
34 DEPENDS:= \
35 +PACKAGE_python-qrcode:python \
36 +PACKAGE_python-qrcode:python-setuptools \
37 +PACKAGE_python-qrcode:python-six \
38 +PACKAGE_python-qrcode:python-pillow
39 VARIANT:=python
40 endef
41
42 define Package/python-qrcode/description
43 Pure python QR Code generator
44 endef
45
46 define Package/python3-qrcode
47 $(call Package/python-qrcode/Default)
48 DEPENDS:= \
49 +PACKAGE_python3-qrcode:python3 \
50 +PACKAGE_python3-qrcode:python3-setuptools \
51 +PACKAGE_python3-qrcode:python3-six \
52 +PACKAGE_python3-qrcode:python3-pillow
53 VARIANT:=python3
54 endef
55
56 define Package/python3-qrcode/description
57 $(call Package/python-qrcode/description)
58 .
59 (Variant for Python3)
60 endef
61
62 $(eval $(call PyPackage,python-qrcode))
63 $(eval $(call BuildPackage,python-qrcode))
64 $(eval $(call BuildPackage,python-qrcode-src))
65
66 $(eval $(call Py3Package,python3-qrcode))
67 $(eval $(call BuildPackage,python3-qrcode))
68 $(eval $(call BuildPackage,python3-qrcode-src))