Please find a debdiff attached that fixes this.
diff -Nru onscripter-20220816/debian/changelog onscripter-20220816/debian/changelog
--- onscripter-20220816/debian/changelog 2022-09-16 08:58:27.000000000 +0200
+++ onscripter-20220816/debian/changelog 2025-03-06 23:19:51.000000000 +0100
@@ -1,3 +1,10 @@
+onscripter (20220816-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Build with lua5.1 again. (Closes: #1050630)
+
+ -- Bastian Germann <
bage@debian.org> Thu, 06 Mar 2025 23:19:51 +0100
+
onscripter (20220816-1) unstable; urgency=low
* New upstream release.
diff -Nru onscripter-20220816/debian/control onscripter-20220816/debian/control --- onscripter-20220816/debian/control 2022-01-17 05:39:38.000000000 +0100
+++ onscripter-20220816/debian/control 2025-03-06 23:16:21.000000000 +0100
@@ -6,7 +6,7 @@
dpkg-dev (>= 1.19.0),
libsdl1.2-dev, libavifile-0.7-dev,
libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-ttf2.0-dev,
- libbz2-dev, libjpeg-dev, liblua5.2-dev, libfontconfig1-dev,
+ libbz2-dev, libjpeg-dev, liblua5.1-0-dev, libfontconf