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.

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