project-defs.sh.inc.example 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. # project-specific constants
  2. #
  3. # copy this file to ./project-defs.sh.inc and customize
  4. #
  5. # NOTE: packaging is strongly coupled to the upstream tarball URL and naming schemes - e.g.
  6. # TARBALL_FILE: ${VERSION_STRING}.tar.gz
  7. # TARBALL_INNER_DIR: ${UPSTREAM_NAME}-${VERSION}/
  8. # DEB_TARBALL_FILE: ${DEBIAN_NAME}_${VERSION}.orig.tar.gz
  9. # DEB_DIFFBALL_FILE: ${DEBIAN_NAME}_${VERSION}-1.diff.gz
  10. readonly GITHUB_LOGIN='' # e.g. 'my-github-user-name'
  11. readonly GITHUB_AUTH_TOKEN='' # e.g. '0123456789012345678901234567890123456789'
  12. readonly OBS_LOGIN='' # e.g. 'my-opensuse-user-name'
  13. readonly UPSTREAM_NAME='' # e.g. 'my-github-project-name'
  14. readonly OBS_NAME=$UPSTREAM_NAME # e.g. 'my-opensuse-project-name'
  15. readonly DEBIAN_NAME=$UPSTREAM_NAME # e.g. 'my-debian-project-name'
  16. readonly REMOTE_NAME='github' # e.g. one of `git remote`
  17. readonly STAGING_BRANCH='staging' # NOTE: must be different than PACKAGING_BRANCH
  18. readonly PACKAGING_BRANCH='packaging' # NOTE: must be different than STAGING_BRANCH
  19. readonly DEB_BUILD_TOOL='gbp' # one of 'debuild', 'sbuild', 'gbp'
  20. readonly DEB_SBUILD_DIR=/var/cache/sbuild # for DEB_BUILD_TOOL='sbuild'
  21. readonly DEB_PBUILDER_DIR=/var/cache/pbuilder # for DEB_BUILD_TOOL='gbp'
  22. readonly DEB_BUILD_DIST=unstable
  23. readonly DEB_BUILD_ARCH=amd64
  24. readonly OBS_DIRNAME='obs'
  25. readonly OSC_DIR=/code/osc/home\:${OBS_LOGIN}/${OBS_NAME}
  26. readonly BUG_URL=https://github.com/${GITHUB_LOGIN}/${UPSTREAM_NAME}/issues
  27. readonly CHANGELOG_MESSAGE='updated to new upstream version'
  28. readonly GIT_CLEAN_OPTIONS='-dx --force'
  29. readonly N_MAKE_JOBS=42
  30. readonly LOG_FILE=../gbp-buildlog