aboutsummaryrefslogtreecommitdiff
path: root/debian/docker/build.sh
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-04 16:42:36 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-07 02:26:43 -0500
commit7666f4d8b4d163d4830a82cce7db7849ae196581 (patch)
tree860f879715fefa5d952283e97e0e6184bfcf5718 /debian/docker/build.sh
parentAdd missing step to README (diff)
downloadjellyfin-packaging-7666f4d8b4d163d4830a82cce7db7849ae196581.tar.gz
jellyfin-packaging-7666f4d8b4d163d4830a82cce7db7849ae196581.tar.bz2
jellyfin-packaging-7666f4d8b4d163d4830a82cce7db7849ae196581.zip
Add Dockerized debian builders
Diffstat (limited to 'debian/docker/build.sh')
-rwxr-xr-xdebian/docker/build.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/docker/build.sh b/debian/docker/build.sh
new file mode 100755
index 0000000..32533f7
--- /dev/null
+++ b/debian/docker/build.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#= Debian .deb builder
+
+set -o errexit
+set -o xtrace
+
+# Move to source directory
+pushd "${SOURCE_DIR}"
+
+# Build DEB
+if [[ ${ARCH} != $( dpkg --print-architecture ) ]]; then
+ export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
+ export CONFIG_CROSS="-a ${ARCH}"
+fi
+dpkg-buildpackage -us -uc ${CONFIG_CROSS} --pre-clean --post-clean
+
+mkdir -p "${ARTIFACT_DIR}/"
+mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} "${ARTIFACT_DIR}/"
+
+popd
bgstack15