]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
add build script with control file
authorBastian Dehn <hhaalo@arcor.de>
Sun, 22 Dec 2024 10:30:30 +0000 (11:30 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 22 Dec 2024 10:41:19 +0000 (11:41 +0100)
.gitignore [new file with mode: 0644]
build-package [new file with mode: 0755]
control [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..378eac2
--- /dev/null
@@ -0,0 +1 @@
+build
diff --git a/build-package b/build-package
new file mode 100755 (executable)
index 0000000..9a4a0a1
--- /dev/null
@@ -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 (file)
index 0000000..0bea772
--- /dev/null
+++ b/control
@@ -0,0 +1,6 @@
+Package: scantopdf
+Version: 1.0.0
+Architecture: amd64
+Maintainer: Bastian Dehn <hhaalo@arcor.de>
+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