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
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_SOURCE_URL
=https
://codeload.github.com
/hoelzro
/$(PKG_NAME
)/tar.gz
/$(PKG_VERSION
)?
13 PKG_HASH
:=21d005f16043397a85913a7d14a267716d6384f0228718d5de464bfc0274e338
15 PKG_MAINTAINER
:=Karl Palsson
<karlp@etactica.com
>
17 PKG_LICENSE_FILES
:=COPYRIGHT
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/linotify
25 TITLE
:=inotify binding for lua
27 URL
:=https
://github.com
/hoelzro
/linotify
30 define Package
/linotify
/description
31 This provides a lua binding to the inotify file system change notification system
35 cd
$(PKG_BUILD_DIR
) && \
36 $(TARGET_CC
) -o inotify.so
-shared
$(FPIC
) $(TARGET_CFLAGS
) $(TARGET_LDFLAGS
) linotify.c
39 define Package
/$(PKG_NAME
)/install
40 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/inotify.so
$(1)/usr
/lib
/lua
44 $(eval
$(call BuildPackage
,linotify
))