termux / termux-create-package

Python script to create Termux packages easily.
https://termux.com
Apache License 2.0
417 stars 95 forks source link

[feature] Respect PREFIX enviroment var? #50

Open Freed-Wu opened 5 months ago

Freed-Wu commented 5 months ago

For example, when PREFIX is set, it will use $PREFIX. if not, it will use /usr as a fallback?

agnostic-apollo commented 5 months ago

Support can be added in future to expand environment variables in config keys like installation_prefix or other director path keys. There are currently hard coded paths too for /data/data/com.termux/files/usr that should be replaced with a placeholder that's replaced during build time for the termux package, and it should preferably be got through the TERMUX__PREFIX env variable first if set, scoped variable design is being finalized for termux app v0.119.0 ($PREFIX will be deprecated).