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.

41 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-qrcode
  9. PKG_VERSION:=6.1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_SOURCE:=qrcode-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/q/qrcode/
  14. PKG_HASH:=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-oauthlib-$(PKG_VERSION)
  16. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. define Package/python-qrcode
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  24. TITLE:=QR Code image generator
  25. URL:=https://github.com/lincolnloop/python-qrcode
  26. DEPENDS:=+python +python-six +python-setuptools +pillow
  27. VARIANT:=python
  28. endef
  29. define Package/python-qrcode/description
  30. Pure python QR Code generator
  31. endef
  32. $(eval $(call PyPackage,python-qrcode))
  33. $(eval $(call BuildPackage,python-qrcode))
  34. $(eval $(call BuildPackage,python-qrcode-src))