diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-04 16:42:36 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-07 02:26:43 -0500 |
commit | 7666f4d8b4d163d4830a82cce7db7849ae196581 (patch) | |
tree | 860f879715fefa5d952283e97e0e6184bfcf5718 /debian/docker/build.sh | |
parent | Add missing step to README (diff) | |
download | jellyfin-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-x | debian/docker/build.sh | 21 |
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 |