diff options
| author | Karl Palsson <karlp@etactica.com> | 2020-07-09 11:16:17 +0000 |
|---|---|---|
| committer | Karl Palsson <karlp@etactica.com> | 2020-09-14 16:48:19 +0000 |
| commit | 41876145674c6d7ca79ab20ea2765d1ec299fea4 (patch) | |
| tree | aebd686b4e49e2f31cf0ff14e1bb3762773a5540 /lang/linotify | |
| parent | ae5480db06acc6a75b09c0db7122c4ff9f5eac5a (diff) | |
lang: linotify: add lua bindings for inotify
Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'lang/linotify')
| -rw-r--r-- | lang/linotify/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lang/linotify/Makefile b/lang/linotify/Makefile new file mode 100644 index 000000000..17be2b2c1 --- /dev/null +++ b/lang/linotify/Makefile @@ -0,0 +1,44 @@ +# +# This is free software, licensed under your choice of the following SPDX identifiers: +# Apache-2.0, BSD-2-Clause, CC-BY-4.0, ISC, MIT, X11 or GPL-2.0-or-later + +include $(TOPDIR)/rules.mk + +PKG_NAME:=linotify +PKG_VERSION:=0.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL=https://codeload.github.com/hoelzro/$(PKG_NAME)/tar.gz/$(PKG_VERSION)? +PKG_HASH:=21d005f16043397a85913a7d14a267716d6384f0228718d5de464bfc0274e338 + +PKG_MAINTAINER:=Karl Palsson <karlp@etactica.com> +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=COPYRIGHT + +include $(INCLUDE_DIR)/package.mk + +define Package/linotify + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=inotify binding for lua + DEPENDS:=+lua + URL:=https://github.com/hoelzro/linotify +endef + +define Package/linotify/description + This provides a lua binding to the inotify file system change notification system +endef + +define Build/Compile + cd $(PKG_BUILD_DIR) && \ + $(TARGET_CC) -o inotify.so -shared $(FPIC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) linotify.c +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/inotify.so $(1)/usr/lib/lua +endef + +$(eval $(call BuildPackage,linotify)) |
