~/paste/5166
~/paste/5166
~/paste/5166

  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.  
  8. include $(TOPDIR)/rules.mk
  9.  
  10. PKG_NAME:=bluepy
  11. PKG_VERSION:=1.1.4
  12. PKG_RELEASE:=1
  13. PKG_LICENSE:=GPL-2.0
  14.  
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_SOURCE_URL:=https://pypi.python.org/packages/85/06/0729bd5860a6658d3ddd38061caaa14914c0843cfb1305703724bd807005/
  17. PKG_HASH:=d619205cf52107da69fd8a5200f380372fc7b22e77e2555cb9aca1682d79df70
  18.  
  19. PKG_MAINTAINER:=Mirko Vogt <mirko-openwrt@nanl.de>
  20.  
  21. include $(INCLUDE_DIR)/package.mk
  22. include ../python3-package.mk
  23.  
  24. define Package/bluepy
  25.   SUBMENU:=Python
  26.   SECTION:=lang
  27.   CATEGORY:=Languages
  28.   TITLE:=python-bluepy
  29.   DEPENDS:=+python3-light +glib2
  30. endef
  31.  
  32. define Package/bluepy/description
  33.   Python interface to Bluetooth LE on Linux
  34. endef
  35.  
  36. #define Build/Compile
  37. #       $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  38. #endef
  39.  
  40. MAKE_PATH:=bluepy/
  41.  
  42. define Build/Compile
  43.         $(call Build/Compile/Default)
  44.         $(call Py3Build/Compile)
  45. endef
  46.  
  47. define Package/bluepy/install
  48.         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  49.         $(CP) \
  50.             $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  51.             $(1)$(PYTHON_PKG_DIR)
  52.         $(RM) $(1)$(PYTHON_PKG_DIR)/usr/lib/python3*/site-packages/bluepy/{bluepy-helper.c,Makefile,bluez-src.tgz}
  53. endef
  54.  
  55. #$(eval $(call Py3Package,bluepy))
  56. $(eval $(call BuildPackage,bluepy))
Language: make
Posted by Anonymous at 10 Mar 2018, 03:55:34 UTC