Install required Debian packages to build Parewi and its dependencies:
sudo apt-get install build-essential autotools-dev autoconf pkg-config automake libtool libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev liblua5.2-dev libsdl2-net-dev lua5.2 liblua5.2 libsdl-pango-dev librsvg2-dev libxml2-dev
To build:
autoreconf --install
.\configure
make
sudo make install