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.

49 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_MIRROR_HASH:=367db3667c6d2d8e20a0a214895e1bf2546918b008d084c3e7ca1adba9527dda
  17. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  18. PKG_LICENSE:=GPL-2.0
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/yunbridge
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Arduino YUN bridge library
  24. URL:=http://arduino.cc/
  25. DEPENDS:=+python
  26. endef
  27. define Package/yunbridge/description
  28. Arduino YUN bridge library
  29. endef
  30. define Build/Compile
  31. true
  32. endef
  33. define Package/yunbridge/install
  34. mkdir -p $(1)/usr/lib/python2.7/bridge
  35. $(CP) $(PKG_BUILD_DIR)/bridge/*.py $(1)/usr/lib/python2.7/bridge/
  36. $(CP) ./files/* $(1)
  37. endef
  38. $(eval $(call BuildPackage,yunbridge))