Merge pull request #4940 from diizzyy/patch-95
[feed/packages.git] / lang / lua-mosquitto / Makefile
1 #
2 # Copyright (C) 2013-2015 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:=lua-mosquitto
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13 PKG_LICENSE:=MIT
14 PKG_LICENSE_FILES:=LICENSE
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_MIRROR_HASH:=c93aaf17c228917db2cc9ab1d9124971eecd818ec4da9d8f8609ca4a4e372beb
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_URL:=https://github.com/flukso/lua-mosquitto.git
21 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/lua-mosquitto
26 SUBMENU:=Lua
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=Lua-mosquitto
30 DEPENDS:=+libmosquitto +lua
31 MAINTAINER:=Karl Palsson <karlp@remake.is>
32 endef
33
34 define Package/lua-mosquitto/description
35 Lua bindings to libmosquitto
36 endef
37
38 define Package/lua-mosquitto/install
39 $(INSTALL_DIR) $(1)/usr/lib/lua
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto.so $(1)/usr/lib/lua
41 endef
42
43 $(eval $(call BuildPackage,lua-mosquitto))