From a32414a2b5ca084ececc9ed1f6e2cb6e48e3e32e Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 22 Dec 2024 11:30:30 +0100 Subject: [PATCH] add build script with control file --- .gitignore | 1 + build-package | 25 +++++++++++++++++++++++++ control | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100755 build-package create mode 100644 control diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/build-package b/build-package new file mode 100755 index 0000000..9a4a0a1 --- /dev/null +++ b/build-package @@ -0,0 +1,25 @@ +#!/bin/bash + +main() +{ + local VERSION="1.0.0" + local BUILDVERSION="1" + local ARCHITECTURE="amd64" + local PACKAGENAME="scantopdf-$VERSION-$BUILDVERSION-$ARCHITECTURE" + + mkdir -p build + mkdir -p build/$PACKAGENAME/usr/local/bin + + cp scantopdf build/$PACKAGENAME/usr/local/bin/scantopdf + cp scantopdfgray build/$PACKAGENAME/usr/local/bin/scantopdfgray + cp scantopdfbw build/$PACKAGENAME/usr/local/bin/scantopdfbw + + mkdir -p build/$PACKAGENAME/DEBIAN + cp control build/$PACKAGENAME/DEBIAN/control + + cd build + + dpkg --build $PACKAGENAME +} + +main diff --git a/control b/control new file mode 100644 index 0000000..0bea772 --- /dev/null +++ b/control @@ -0,0 +1,6 @@ +Package: scantopdf +Version: 1.0.0 +Architecture: amd64 +Maintainer: Bastian Dehn +Depends: sane (>= 1.0.14), qpdf (>= 11.3.0), pdftk (>= 2.02), libtiff-tools (>= 4.5.0), ocrmypdf (>= 14.0.1), tesseract-ocr-deu (>= 4.1.0) +Description: scan to pdf with ocr scripts for sane-kds-s2000w-net -- 2.39.5