GithubHelp home page GithubHelp logo

requiredtruth / termux-create-package Goto Github PK

View Code? Open in Web Editor NEW

This project forked from termux/termux-create-package

0.0 1.0 0.0 16 KB

Python script to create Termux packages easily.

Home Page: https://termux.com

Roff 0.35% Python 99.65%

termux-create-package's Introduction

termux-create-package

A tool to create lightweight deb packages.

By default it creates deb files for installation in the Termux Linux environment, but by specifying e.g. --prefix /usr a deb file can be created for any .deb-using distribution such as Debian or Ubuntu.

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), install with pip3 install termux-create-package 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" :{
    "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

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

termux-create-package's People

Contributors

fornwall avatar mklein994 avatar wetitpig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.