Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / utils / yunbridge / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=yunbridge
11 PKG_VERSION:=160
12
13 PKG_RELEASE=$(PKG_SOURCE_VERSION)
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/arduino/YunBridge.git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=f2042052115e71ad2c91f77e78d21db8275fcdd6
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
20 PKG_MIRROR_HASH:=367db3667c6d2d8e20a0a214895e1bf2546918b008d084c3e7ca1adba9527dda
21
22 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
23 PKG_LICENSE:=GPL-2.0
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/yunbridge
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=Arduino YUN bridge library
31 URL:=http://arduino.cc/
32 DEPENDS:=+python
33 endef
34
35 define Package/yunbridge/description
36 Arduino YUN bridge library
37 endef
38
39 define Build/Compile
40 true
41 endef
42
43 define Package/yunbridge/install
44 mkdir -p $(1)/usr/lib/python2.7/bridge
45 $(CP) $(PKG_BUILD_DIR)/bridge/*.py $(1)/usr/lib/python2.7/bridge/
46 $(CP) ./files/* $(1)
47 endef
48
49 $(eval $(call BuildPackage,yunbridge))