Răsfoiți Sursa

package/lua-compat53: install compat-5.3.h

this file could be required by some native modules

note: compat-5.3.c is included by compat-5.3.h
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Francois Perrad 1 an în urmă
părinte
comite
898941a0d7
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      package/lua-compat53/lua-compat53.mk

+ 8 - 0
package/lua-compat53/lua-compat53.mk

@@ -10,5 +10,13 @@ LUA_COMPAT53_NAME_UPSTREAM = compat53
 LUA_COMPAT53_SUBDIR = lua-compat-5.3-$(LUA_COMPAT53_VERSION_UPSTREAM)
 LUA_COMPAT53_LICENSE = MIT
 LUA_COMPAT53_LICENSE_FILES = $(LUA_COMPAT53_SUBDIR)/LICENSE
+LUA_COMPAT53_INSTALL_STAGING = YES
+
+define LUA_COMPAT53_INSTALL_STAGING_CMDS
+	$(INSTALL) -D -m 0644 $(@D)/$(LUA_COMPAT53_SUBDIR)/c-api/compat-5.3.c \
+		$(STAGING_DIR)/usr/include/compat-5.3.c
+	$(INSTALL) -D -m 0644 $(@D)/$(LUA_COMPAT53_SUBDIR)/c-api/compat-5.3.h \
+		$(STAGING_DIR)/usr/include/compat-5.3.h
+endef
 
 $(eval $(luarocks-package))