summaryrefslogtreecommitdiff
path: root/scripts/makedeb-docker-helper
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-16 21:25:30 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-16 21:25:30 +0100
commitacb6f0208c3d177092f8cff4807da4330a93b6c4 (patch)
tree2bbc0ac84f4fdad8a42cf8d8cd5e877840829cd8 /scripts/makedeb-docker-helper
parent748aec53e2b249652f6b45a754b7c63b3c314e95 (diff)
Release v0.010.01
Diffstat (limited to 'scripts/makedeb-docker-helper')
-rwxr-xr-xscripts/makedeb-docker-helper37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/makedeb-docker-helper b/scripts/makedeb-docker-helper
new file mode 100755
index 0000000..830deb0
--- /dev/null
+++ b/scripts/makedeb-docker-helper
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+set -e
+
+export DEBIAN_FRONTEND=noninteractive
+export APT_LISTCHANGES_FRONTEND=none
+
+apt-get update
+apt-get -y install \
+ apt-file dh-make-perl libmodule-build-perl \
+ libclass-accessor-perl libdatetime-perl libdatetime-format-strptime-perl \
+ liblwp-protocol-https-perl libjson-perl libjson-xs-perl \
+ liblist-moreutils-perl \
+ libwww-perl \
+ libtest-compile-perl libtest-pod-perl \
+ libtest-simple-perl wget
+
+wget https://lib.finalrewind.org/deb/libtravel-status-de-deutschebahn-perl_4.19-1_all.deb
+dpkg -i libtravel-status-de-deutschebahn-perl_4.19-1_all.deb
+
+apt-file update
+apt-cache dumpavail | dpkg --merge-avail
+
+mkdir -p /src/app
+cp -a /orig/Build.PL /orig/Changelog /orig/README.md /src/app
+cp -a /orig/bin /orig/lib /src/app
+cd /src/app
+
+sed -i 's/sign *=> *1/sign => 0/' Build.PL
+perl Build.PL
+perl Build
+perl Build manifest
+perl Build dist
+mv Travel-Routing-DE-HAFAS-*.tar.gz ../app.tar.gz
+dh-make-perl --build --version "${VERSION}"
+chown ${USER}:${GROUP} ../*.deb
+mv -v ../*.deb /out