From bc046c0c5929172ebd8d4b0e488b3dbbd867a627 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 27 Apr 2019 17:13:53 +0800 Subject: [PATCH] lua-ev: Add package Signed-off-by: Jianhui Zhao --- lang/lua-ev/Makefile | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lang/lua-ev/Makefile diff --git a/lang/lua-ev/Makefile b/lang/lua-ev/Makefile new file mode 100644 index 000000000..42d323e97 --- /dev/null +++ b/lang/lua-ev/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2019 Jianhui Zhao +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=lua-ev +PKG_RELEASE:=1 + +PKG_SOURCE_URL=https://github.com/brimworks/lua-ev.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_DATE=2015-8-4 +PKG_SOURCE_VERSION:=339426fbe528f11cb3cd1af69a88f06bba367981 +PKG_MIRROR_HASH:=fe138f05845d549998443628e1b63e07d797977548a30e75305085cca4b25567 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:= + +PKG_MAINTAINER:=Jianhui Zhao + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/lua-ev + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=lua-ev + URL:=https://github.com/brimworks/lua-ev + DEPENDS:=+lua +libev +endef + +define Package/lua-ev/description + Lua integration with libev. +endef + +define Package/lua-ev/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ev.so $(1)/usr/lib/lua +endef + +$(eval $(call BuildPackage,lua-ev))