#
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lua-mosquitto
|
|
PKG_VERSION:=0.3
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_MIRROR_HASH:=104a143131812a507e74f9debde45614d006b6ea6c3b0265b83060b14b9d3a34
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_URL:=https://github.com/flukso/lua-mosquitto.git
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/lua-mosquitto
|
|
SUBMENU:=Lua
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Lua-mosquitto
|
|
DEPENDS:=+libmosquitto +lua
|
|
MAINTAINER:=Karl Palsson <karlp@etactica.com>
|
|
endef
|
|
|
|
define Package/lua-mosquitto/description
|
|
Lua bindings to libmosquitto
|
|
endef
|
|
|
|
define Package/lua-mosquitto/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto.so $(1)/usr/lib/lua
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,lua-mosquitto))
|