Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metapackage for bootstrap environment #22140

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/termux-bootstrap/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-packages
TERMUX_PKG_DESCRIPTION="A metapackage representing base Termux environment"
TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_DEPENDS="bash, bzip2, command-not-found, coreutils, curl, dash, debianutils, diffutils, dos2unix, ed, findutils, gawk, grep, gzip, inetutils, less, lsof, nano, net-tools, patch, procps, psmisc, sed, tar, termux-exec, termux-keyring, termux-tools, unzip, util-linux, xz-utils"
TERMUX_PKG_ESSENTIAL=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_METAPACKAGE=true
38 changes: 2 additions & 36 deletions scripts/generate-bootstraps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,44 +445,10 @@ for package_arch in "${TERMUX_ARCHITECTURES[@]}"; do
fi

# Core utilities.
pull_package bash # Used by `termux-bootstrap-second-stage.sh`
pull_package bzip2
if ! ${BOOTSTRAP_ANDROID10_COMPATIBLE}; then
pull_package command-not-found
else
pull_package termux-bootstrap
if ${BOOTSTRAP_ANDROID10_COMPATIBLE}; then
pull_package proot
fi
pull_package coreutils
pull_package curl
pull_package dash
pull_package diffutils
pull_package findutils
pull_package gawk
pull_package grep
pull_package gzip
pull_package less
pull_package procps
pull_package psmisc
pull_package sed
pull_package tar
pull_package termux-exec
pull_package termux-keyring
pull_package termux-tools
pull_package util-linux
pull_package xz-utils

# Additional.
pull_package ed
if [ ${TERMUX_PACKAGE_MANAGER} = "apt" ]; then
pull_package debianutils
fi
pull_package dos2unix
pull_package inetutils
pull_package lsof
pull_package nano
pull_package net-tools
pull_package patch
pull_package unzip

# Handle additional packages.
for add_pkg in "${ADDITIONAL_PACKAGES[@]}"; do
Expand Down