You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. #
  2. # This is free software, licensed under your choice of the following SPDX identifiers:
  3. # Apache-2.0, BSD-2-Clause, CC-BY-4.0, ISC, MIT, X11 or GPL-2.0-or-later
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=linotify
  6. PKG_VERSION:=0.5
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL=https://codeload.github.com/hoelzro/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
  10. PKG_HASH:=21d005f16043397a85913a7d14a267716d6384f0228718d5de464bfc0274e338
  11. PKG_MAINTAINER:=Karl Palsson <karlp@etactica.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYRIGHT
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/linotify
  16. SUBMENU:=Lua
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=inotify binding for lua
  20. DEPENDS:=+lua
  21. URL:=https://github.com/hoelzro/linotify
  22. endef
  23. define Package/linotify/description
  24. This provides a lua binding to the inotify file system change notification system
  25. endef
  26. define Build/Compile
  27. cd $(PKG_BUILD_DIR) && \
  28. $(TARGET_CC) -o inotify.so -shared $(FPIC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) linotify.c
  29. endef
  30. define Package/$(PKG_NAME)/install
  31. $(INSTALL_DIR) $(1)/usr/lib/lua
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/inotify.so $(1)/usr/lib/lua
  33. endef
  34. $(eval $(call BuildPackage,linotify))