This page describes the steps needed to build LuaSec's Debian package from scratch.

svn co svn:// pkg-lua  # Fetch the package sources
cd pkg-lua/packages # Switch into the packages directory
make build P=lua-sec  # Actually build the lua-sec package
sudo dpkg -r liblua5.1-sec-dev liblua5.1-sec0 # Remove existing installed packages
sudo dpkg -i liblua5.1-sec0_0.3-2_i386.deb liblua5.1-sec-dev_0.3-2_i386.deb # Install the new package