From cb8667a63c9d9544e0043b183133f3b5a6d7fe40 Mon Sep 17 00:00:00 2001
From: Christian Wiese <chris@opensde.org>
Date: Tue, 24 Apr 2012 14:55:36 +0200
Subject: [PATCH] lua.pc.in: add INSTALL_{L,C}MOD variables

Note:

Most distributions are defining INSTALL_LMOD and INSTALL_CMOD within their
packaged pkg-config file of lua, because both are commonly used by third-party
Makefiles for figuring out where to install lua modules through pkg-config.

INSTALL_LMOD defines the path where to install pure lua modules
INSTALL_CMOD defines the path where to install compiled lua modules
---
 etc/lua.pc.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/etc/lua.pc.in b/etc/lua.pc.in
index 2c4ef36..b01622d 100644
--- a/etc/lua.pc.in
+++ b/etc/lua.pc.in
@@ -5,6 +5,9 @@ exec_prefix=${prefix}
 libdir= @libdir@
 includedir=${prefix}/include
 
+INSTALL_LMOD= ${prefix}/share/lua/${V}
+INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
 Name: Lua
 Description: An Extensible Extension Language
 Version: ${R}