build.debian.armhf 693 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. #= Debian 10+ arm64 .deb
  3. set -o errexit
  4. set -o xtrace
  5. # Move to source directory
  6. pushd ${SOURCE_DIR}
  7. if [[ ${IS_DOCKER} == YES ]]; then
  8. # Remove build-dep for dotnet-sdk-3.1, since it's installed manually
  9. cp -a debian/control /tmp/control.orig
  10. sed -i '/dotnet-sdk-3.1,/d' debian/control
  11. fi
  12. # Build DEB
  13. export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
  14. dpkg-buildpackage -us -uc -a armhf --pre-clean --post-clean
  15. mkdir -p ${ARTIFACT_DIR}/
  16. mv ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes} ${ARTIFACT_DIR}/
  17. if [[ ${IS_DOCKER} == YES ]]; then
  18. cp -a /tmp/control.orig debian/control
  19. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
  20. fi
  21. popd