From: Bastian Dehn Date: Sun, 22 Dec 2024 10:30:30 +0000 (+0100) Subject: add build script with control file X-Git-Tag: v1.0.0^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=a32414a2b5ca084ececc9ed1f6e2cb6e48e3e32e;p=scantopdf.git add build script with control file --- 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