tce-load -i gtk3-dev gtk3-gir gobject-introspection-dev intltool py3gobject-dev glade-dev

cd libpeas-1.20.0

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install

Configuration:

        Source code location          : .
        Compiler                      : gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe
        Installation prefix           : /usr/local
        Build libpeas-gtk             : yes
        Coverage testing              : no (disabled, use --enable-gcov to enable)
        Glade Catalog                 : yes
        Disable deprecated features   : 

Languages support:

        Lua 5.1 support               : no
        Python 2 support              : yes
        Python 3 support              : yes

configure:13274: checking for Lua 5.1 availability.
configure:13284: $PKG_CONFIG --exists --print-errors "luajit >= $LUAJIT_REQUIRED"
Package luajit was not found in the pkg-config search path.
Perhaps you should add the directory containing `luajit.pc'
to the PKG_CONFIG_PATH environment variable
No package 'luajit' found
configure:13287: $? = 1
configure:13307: $PKG_CONFIG --exists --print-errors "lua5.1 >= $LUA51_REQUIRED"
Package lua5.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua5.1.pc'
