| 123456789101112131415161718192021 | #!/bin/bash# Builds the DEB inside the Docker containerset -o errexitset -o xtrace# Move to source directorypushd ${SOURCE_DIR}# Remove build-dep for dotnet-sdk-3.1, since it's not a package in this imagesed -i '/dotnet-sdk-3.1,/d' debian/control# Build DEBexport CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}dpkg-buildpackage -us -uc -aarmhf# Move the artifacts outmkdir -p ${ARTIFACT_DIR}/debmv /jellyfin[-_]* ${ARTIFACT_DIR}/deb/chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
 |