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.

48 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2006-2011 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:=yunbridge
  9. PKG_VERSION:=160
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/arduino/YunBridge.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=f2042052115e71ad2c91f77e78d21db8275fcdd6
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  17. PKG_LICENSE:=GPL-2.0
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/yunbridge
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Arduino YUN bridge library
  23. URL:=http://arduino.cc/
  24. DEPENDS:=+python
  25. endef
  26. define Package/yunbridge/description
  27. Arduino YUN bridge library
  28. endef
  29. define Build/Compile
  30. true
  31. endef
  32. define Package/yunbridge/install
  33. mkdir -p $(1)/usr/lib/python2.7/bridge
  34. $(CP) $(PKG_BUILD_DIR)/bridge/*.py $(1)/usr/lib/python2.7/bridge/
  35. $(CP) ./files/* $(1)
  36. endef
  37. $(eval $(call BuildPackage,yunbridge))