Browse Source

django-simple-captcha: use PyPackage to build

Updated Makefile to use PyPackage, added option to build source package,
and updated PKG_SOURCE_URL.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
lilik-openwrt-22.03
Eneas U de Queiroz 6 years ago
parent
commit
f9978fce52
1 changed files with 5 additions and 13 deletions
  1. +5
    -13
      lang/python/django-simple-captcha/Makefile

+ 5
- 13
lang/python/django-simple-captcha/Makefile View File

@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=django-simple-captcha PKG_NAME:=django-simple-captcha
PKG_VERSION:=0.5.9 PKG_VERSION:=0.5.9
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/d7/f4/ea95b04ed3abc7bf225716f17e35c5a185f6100db4d7541a46696ce40351
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/${PKG_NAME}
PKG_HASH:=0c30a14f02502119fd1a4d308dd5d2b899d0f4284825a396bbb010afd904754a PKG_HASH:=0c30a14f02502119fd1a4d308dd5d2b899d0f4284825a396bbb010afd904754a
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -27,6 +27,7 @@ define Package/django-simple-captcha
TITLE:=A very simple, yet powerful, Django captcha application TITLE:=A very simple, yet powerful, Django captcha application
URL:=https://github.com/mbi/django-simple-captcha URL:=https://github.com/mbi/django-simple-captcha
DEPENDS:=+python +python-six +django +pillow +django-ranged-response DEPENDS:=+python +python-six +django +pillow +django-ranged-response
VARIANT:=python
endef endef
define Package/django-simple-captcha/description define Package/django-simple-captcha/description
@ -34,15 +35,6 @@ define Package/django-simple-captcha/description
application to add captcha images to any Django form. application to add captcha images to any Django form.
endef endef
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef
define Package/django-simple-captcha/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)
endef
$(eval $(call PyPackage,django-simple-captcha))
$(eval $(call BuildPackage,django-simple-captcha)) $(eval $(call BuildPackage,django-simple-captcha))
$(eval $(call BuildPackage,django-simple-captcha-src))

Loading…
Cancel
Save