From 76d2d2848658bf3916328cb32849e2643618fab1 Mon Sep 17 00:00:00 2001 From: "Owen T. Heisler" Date: Mon, 14 Aug 2023 05:31:29 +0000 Subject: [PATCH] Add build/install steps for Debian bookworm --- debian-bookworm/README.md | 26 +++++++++++++++++++++++++ debian-bookworm/builddep-scantailor.ctl | 18 +++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 debian-bookworm/README.md create mode 100644 debian-bookworm/builddep-scantailor.ctl diff --git a/debian-bookworm/README.md b/debian-bookworm/README.md new file mode 100644 index 0000000..dbb005d --- /dev/null +++ b/debian-bookworm/README.md @@ -0,0 +1,26 @@ +Here are the steps for building and installing ScanTailor Advanced on Debian bookworm: + +```sh +# Install dependencies for these steps +apt install equivs wget + +# Install ScanTailor build dependencies +wget https://github.com/ScanTailor-Advanced/scantailor-libs-build/blob/master/debian-bookworm/builddep-scantailor.ctl +equivs-build builddep-scantailor.ctl +sudo dpkg --install builddep-scantailor_1.0_all.deb +sudo apt install # To satisfy the dependencies + +# Build +cd scantailor-advanced/ # This is the git source +mkdir build +cd build +cmake .. +cmake --build . + +# Create package and install it +cpack -G "DEB" +sudo dpkg --install scantailor-advanced-*-Linux.deb + +# Remove build dependencies +sudo apt purge builddep-scantailor +``` diff --git a/debian-bookworm/builddep-scantailor.ctl b/debian-bookworm/builddep-scantailor.ctl new file mode 100644 index 0000000..d0bd670 --- /dev/null +++ b/debian-bookworm/builddep-scantailor.ctl @@ -0,0 +1,18 @@ +Package: builddep-scantailor +Section: misc +Description: Metapackage for scantailor build dependencies +Depends: + gcc, + g++, + cmake, + libjpeg-dev, + libpng-dev, + libtiff5-dev, + libboost-test1.74-dev, + libboost-test1.74.0, + qtbase5-dev, + libqt5svg5-dev, + qttools5-dev, + qttools5-dev-tools, + libqt5opengl5-dev, + libpthread-stubs0-dev