11 echo " The lgi check failed."
12 echo " The Lua GObject introspection package is just a runtime dependency, so it is not"
13 echo " necessary for building awesome. However, awesome needs it to run."
14 echo " Add AWESOME_IGNORE_LGI=1 to your environment to continue."
17 if [ "x$AWESOME_IGNORE_LGI" = "x1" ]
24 # Check if we have lgi
25 lua
-e 'require("lgi")' || die
27 # Check the version number
28 # Keep this in sync with lib/gears/surface.lua.in!
29 lua
-e 'if tonumber(string.match(require("lgi.version"), "(%d%.%d)")) < 0.7 then error("lgi too old, need at least version 0.7.0") end' || die
31 # Check for the needed gi files
32 lua
-e 'l = require("lgi") assert(l.cairo, l.Pango, l.PangoCairo)' || die