You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.9 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-qrcode
  7. PKG_VERSION:=6.1
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=qrcode-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/q/qrcode/
  11. PKG_HASH:=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
  12. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-qrcode-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/python-qrcode/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=QR Code image generator
  25. URL:=https://github.com/lincolnloop/python-qrcode
  26. endef
  27. define Package/python-qrcode
  28. $(call Package/python-qrcode/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-qrcode:python \
  31. +PACKAGE_python-qrcode:python-setuptools \
  32. +PACKAGE_python-qrcode:python-six \
  33. +PACKAGE_python-qrcode:python-pillow
  34. VARIANT:=python
  35. endef
  36. define Package/python-qrcode/description
  37. Pure python QR Code generator
  38. endef
  39. define Package/python3-qrcode
  40. $(call Package/python-qrcode/Default)
  41. DEPENDS:= \
  42. +PACKAGE_python3-qrcode:python3 \
  43. +PACKAGE_python3-qrcode:python3-setuptools \
  44. +PACKAGE_python3-qrcode:python3-six \
  45. +PACKAGE_python3-qrcode:python3-pillow
  46. VARIANT:=python3
  47. endef
  48. define Package/python3-qrcode/description
  49. $(call Package/python-qrcode/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. $(eval $(call PyPackage,python-qrcode))
  54. $(eval $(call BuildPackage,python-qrcode))
  55. $(eval $(call BuildPackage,python-qrcode-src))
  56. $(eval $(call Py3Package,python3-qrcode))
  57. $(eval $(call BuildPackage,python3-qrcode))
  58. $(eval $(call BuildPackage,python3-qrcode-src))