build.debian 552 B

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