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.

47 lines
1.1 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=pycurl
  6. PKG_VERSION:=7.43.0
  7. PKG_RELEASE:=1
  8. PKG_MAINTAINER:=Waldemar Konik <informatyk74@interia.pl>
  9. PKG_LICENSE:=LGPL-2.1
  10. PKG_LICENSE_FILE=COPYING-LGPL
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://dl.bintray.com/pycurl/pycurl/
  13. PKG_HASH:=aa975c19b79b6aa6c0518c0cc2ae33528900478f0b500531dbcdbf05beec584c
  14. PKG_BUILD_DEPENDS:=python libcurl
  15. include $(INCLUDE_DIR)/package.mk
  16. $(call include_mk, python-package.mk)
  17. define Package/python-curl
  18. CATEGORY:=Languages
  19. SECTION:=lang
  20. SUBMENU:=Python
  21. TITLE:=Python module interface to the cURL library
  22. URL:=http://pycurl.io/
  23. DEPENDS:=+python +libcurl
  24. endef
  25. define Package/python-curl/description
  26. Python module interface to the cURL library.
  27. endef
  28. define Build/Compile
  29. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  30. endef
  31. define Package/python-curl/install
  32. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  33. $(CP) \
  34. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  35. $(1)$(PYTHON_PKG_DIR)
  36. endef
  37. $(eval $(call BuildPackage,python-curl))