This tool expects packages to be defined in JSON manifest files. Run termux-create-package -h for more information.
An example manifest file is given below:
{
"name": "newproject",
"version": "1.0",
"homepage": "http://mywebsite.com",
"maintainer": "@Hax4us",
"description": "my description",
"arch": "all",
"depends": ["dependency"],
"files" :{
"myfile.py": "bin/myfile",
"mylib.so": "lib/mylib.so"
}
}
The fields are as follows :
- name: The name of your package.
- version: The version of the package.
- maintainer: Optional informative field specifying who maintains the package.
- homepage: Optional informative field specifying a homepage URL.
- description: Optional informative field containing a short description of the package.
- depends: Comma-separated list of packages that this package depends on. Will be installed automatically when this package is installed using apt.
- arch: Set to all if the package only contains architecture-independent data, or one of arm/i686/aarch64/x86_64 as appropriate.
- files: Files relative to the manifest file that should be included in the package. The keys are paths (relative to the current directory) to include and the values are paths where the files should end up at installation (relative to the $PREFIX path in Termux where everything is installed under).
Run the following command to create a package file named ${name}_${version}_all.deb:
$ termux-create-package manifest.json
This can then be installed in Termux using the command:
apt install ./my-package-file.deb
So my friends I hope that now you can make your own deb package without any hassle :)
Note :- In case of any error you can ask in comment section thnx :)