This a recipe to build and package LPeg for Cygwin. The recipe is based on the recipe in cascent's old neovim port.
Dependencies:
To build the package install the dependencies and run the following command:
cygport luajit-lpeg-cygwin.cygport download prepare compile install package
To install the package you can extract it into the root directory:
eval "$(cygport luajit-lpeg.cygport vars PVR)"
tar -C / -xjvf luajit-$PVR.x86_64/dist/luajit-lpeg/luajit-lpeg-$PVR.tar.xz