close
The Wayback Machine - https://web.archive.org/web/20211127140415/https://github.com/termux/termux-packages/wiki/For-maintainers
Skip to content

For maintainers

Leonid Pliushch edited this page Jul 6, 2021 · 13 revisions

Utilities

  • ./build-all.sh: Build all packages in the correct order (using ./scripts/buildorder.py).

  • ./clean.sh: Cleaning build environment.

  • ./scripts/check-built-packages.py: Compare local (git) and remote (apt) package versions.

  • ./scripts/check-pie.sh: Verify that all binaries are using PIE, which is required for Android 5+.

  • ./scripts/check-versions.sh: Check for package updates.

  • ./scripts/ldd: Print list of required shared libraries for given binary.

  • ./scripts/lint-packages.sh: Do basic checks for problems in build.sh scripts.

  • ./scripts/list-packages.sh: List all packages with a one-line summary.

  • ./scripts/generate-bootstraps.sh: Generate bootstrap archive for Termux app.

Generating bootstrap archives

Bootstrap archives is a zip archives of $TERMUX_PREFIX with basic packages preinstalled and used to create a minimal working environment on first start of Termux application.

Normally, bootstrap zip archives are being generated by executing this script:

./scripts/generate-bootstraps.sh

Built archives will be available in the current working directory.

Please note that you must have an apt repository deployed on the web server in order to be able to generate bootstrap archives.

Default script configuration is

Architectures: aarch64 arm i686 x86_64
Repository URL: https://packages.termux.org/apt/termux-main/

so if you want to generate bootstraps for custom repository, consider using following command line options:

  • --architectures - Comma separated list of architectures for which bootstraps should be generated.

  • --repository - URL of your APT repository. Offline bootstrap generation is not supported.