libgd: update to 2.3.3
[feed/packages.git] / lang / linotify / Makefile
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
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=linotify
8 PKG_VERSION:=0.5
9 PKG_RELEASE:=1
10
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
14
15 PKG_MAINTAINER:=Karl Palsson <karlp@etactica.com>
16 PKG_LICENSE:=MIT
17 PKG_LICENSE_FILES:=COPYRIGHT
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/linotify
22 SUBMENU:=Lua
23 SECTION:=lang
24 CATEGORY:=Languages
25 TITLE:=inotify binding for lua
26 DEPENDS:=+lua
27 URL:=https://github.com/hoelzro/linotify
28 endef
29
30 define Package/linotify/description
31 This provides a lua binding to the inotify file system change notification system
32 endef
33
34 define Build/Compile
35 cd $(PKG_BUILD_DIR) && \
36 $(TARGET_CC) -o inotify.so -shared $(FPIC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) linotify.c
37 endef
38
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
42 endef
43
44 $(eval $(call BuildPackage,linotify))