build.debian 511 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -o errexit
  3. set -o xtrace
  4. # move to source directory
  5. pushd ${SOURCE_DIR}
  6. # install deps
  7. echo y | mk-build-deps -i
  8. # build deb
  9. dpkg-buildpackage -us -uc --pre-clean --post-clean
  10. mkdir -p ${ARTIFACT_DIR}
  11. for source_file in ../jellyfin*.{deb,dsc,tar.gz,buildinfo,changes}
  12. do
  13. file=$(basename "$source_file")
  14. mv "$source_file" "${ARTIFACT_DIR}/${file%.*}-${TAG}.${file##*.}"
  15. done
  16. if [[ ${IS_DOCKER} == YES ]]; then
  17. chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}
  18. fi
  19. popd