这是indexloc提供的服务,不要输入任何密码
Skip to content

termux/termux-create-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

termux-create-package

A tool to make lightweight Termux DEB packages.

Prerequisites

Install it with apt install termux-create-package to use inside Termux.

If you want to run this tool in a non-Termux environment (Linux/macOS), run the termux-create-package script contained in this repository after making sure that Python 3 is installed.

Usage

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": "myproject",
  "version": "1.0",
  "homepage": "http://mysite.com",
  "maintainer": "@mynick",
  "description": "my description",
  "arch": "all",
  "depends": ["dependency"],
  "files" :{ 
    "bin/myproject.py": "bin/myproject"
  }
}

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. At installation time this files will be installed under the $PREFIX path in Termux).

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

or may be added to a custom apt repository created with termux-apt-repo or any other available tool.

About

Python script to create Termux packages easily.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages