Commit Graph

89 Commits

Author SHA1 Message Date
Ivan Max 96379a33db
Adding options to disable cross compilation in cmake (#19404) 2024-03-04 23:39:22 +03:00
Ivan Max 37adaad747
termux_step_configure_meson.sh: add native compilation (#18668) 2023-12-14 13:54:16 +03:00
Jia Yuan Lo b7b9bb184d enhance(scripts): add TERMUX_PKG_NO_SHEBANG_FIX_FILES 2023-10-28 09:50:12 +08:00
Ivan Max a649837ed1
scripts/*: change PATH setting location (#17813) 2023-09-13 15:18:12 +03:00
Ivan Max f85abe7d00
Compiler improvement (#17786) 2023-09-09 17:22:47 +03:00
Ivan Max 42ee1aac94
Improvement build-package.sh (#17735)
- adding version check of dependencies in pacman format
- improving termux_step_setup_cgct_environment()
- adding a new `-w` flag
- fix creating static packages
2023-09-01 21:28:13 +03:00
Ivan Max a46e3e9357
build-package.sh: adding compilation based on glibc (#16901)
[skip ci]
2023-08-30 23:40:08 +03:00
Tee KOBAYASHI cc3a8fcdee scripts: Unset TERMUX_MESON_ENABLE_SOVERSION by default 2023-05-08 01:10:03 +09:00
Butta e93c1bb648 bump(swift): 5.7.3 to 5.8 and spin off runtime and sdk subpackages
Make it so that SDKs for other architectures can be easily installed and used
for cross-compilation.
2023-04-06 19:57:47 +05:30
Tee KOBAYASHI 6938b7c4b4 scripts: Add variable TERMUX_PKG_ENABLE_CLANG16_PORTING
to control errors enabled by default with Clang/LLVM 16.
2023-03-28 16:27:35 +09:00
Uchiha Kakashi 790284e0b6 fix(scripts): `TERMUX_PYTHON_CROSSENV_PREFIX` should be architecture-specific 2023-03-24 20:27:45 +09:00
Tee KOBAYASHI c089b78ca3 scripts: Add note for TERMUX_PKG_ANTI_BUILD_DEPENDS
which cannot be used to "resolve" circular dependencies.
2023-03-16 06:57:53 +09:00
Tee KOBAYASHI 51fa97994e scripts: Add TERMUX_PKG_GO_USE_OLDER variable 2023-03-08 13:03:37 +00:00
Aditya Alok 33b1397f36
haskell-packaging: End support for library packages
- Now we use cabal (comparable to rust's cargo) to build binary packages.

Reason:
- Haskell's cabal packaging system is like rust's cargo. Every packages
  depends upon some specific version of other library. Hence, it is
  hard to maintain each and every version.
- Patching packages so that they use latest of dependencies breaks
  compatibility.

Benefits:
- Enables building very large packages like `pandoc`.
- Reduces disk space used.
- Lesser packages to maintain.

Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 10:08:12 +05:30
Tee KOBAYASHI a09a471d4a scripts: Add `TERMUX_PKG_ANTI_BUILD_DEPENDS` variable
to specify dependencies not needed when building a package.
2023-02-14 18:01:14 +00:00
Tee KOBAYASHI 9bd8fa840c scripts: Add new variable `TERMUX_PKG_NO_STRIP`
to disable stripping binaries.

To be used by `guile` package.
2023-01-31 03:44:27 +00:00
Maxython b33d95d127 termux_step_setup_variables.sh: adding a new variable TERMUX_PYTHON_HOME
This variable allows you to shorten lines that point to python libraries.
%ci:no-build
2023-01-18 13:56:53 +00:00
Maxython d97b8c353b scripts: add termux_setup_python_pip function
It replaces termux_setup_python_crossenv and can be used when
compiling python packages.  Packages should specify their python
dependencies in TERMUX_PKG_PYTHON_TARGET_DEPS,
TERMUX_PKG_PYTHON_BUILD_DEPS, and TERMUX_PKG_PYTHON_COMMON_DEPS.
2023-01-16 09:29:47 +03:00
Ivan Max 83f6e7acfd
build-package.sh: fix bug with TERMUX_FORCE_BUILD and add new flag -F (TERMUX_FORCE_BUILD_DEPENDENCIES) (#13861)
This add-on requires careful review and testing, but this will not interfere with compiling packages.

Co-authored-by: agnostic-apollo <agnosticapollo@gmail.com>

%ci:no-build
2023-01-03 18:04:40 +03:00
Tee KOBAYASHI 7ed4279993 termux_setup_gir: Add flag to opt out
`TERMUX_PKG_DISABLE_GIR=true` disables building of introspection data.

%ci:no-build
2022-10-22 08:23:21 +09:00
Henrik Grimler b044a49d0f
scripts: export TERMUX_PACKAGE_FORMAT and TERMUX_PACKAGE_MANAGER
Otherwise these variables is not visible to child shells.  This caused
configure step of termux-tools to always use debian/apt combination,
since it checks for variables among environmental variables and they
were not visible.
2022-08-10 09:00:33 +02:00
Chongyun Lee 90fda1305b chore: Move REPO-related variables to properties.sh 2022-07-11 15:43:24 +08:00
Henrik Grimler 6cf9f35fac
scripts,ci(*): use termux.dev instead of termux.org
We are now mainly promoting and using termux.dev, so lets switch all
the urls.
2022-07-02 10:41:16 +02:00
Yaksh Bariya ad28dd2ad7
Revert "chore,scripts(termux_step_setup_variables): use main host instead of Cloudflare"
This reverts commit 4da820d32c.

Fixed now
2022-05-28 12:36:16 +05:30
Yaksh Bariya 4da820d32c
chore,scripts(termux_step_setup_variables): use main host instead of Cloudflare
Should be reverted as soon as @Grimler91 fixes the DNS/CNAME
configuration

Closes #10835
Closes #10836
2022-05-28 12:27:51 +05:30
agnostic-apollo 0275d9bff3 changed(scripts|main/termux-tools): Use TERMUX_APP_PACKAGE_MANAGER instead of TERMUX_MAIN_PACKAGE_FORMAT
Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740

The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts.

Closes #10782
2022-05-23 12:14:55 +05:00
Yaksh Bariya f0ea9b922b
monorepo: apply changes suggested by buttaface 2022-04-18 13:57:19 +05:30
Yaksh Bariya 52c383b4d1
chore: switch to monorepo 2022-04-18 13:57:13 +05:30
Aditya Alok 3b92fd5648
Revert "[TEMP] download deps from grimler.se instead of packages.termux.org"
- It should be fixed now.
https://github.com/termux/termux-packages/issues/9860#issuecomment-1087144145

This reverts commit dbd7249e4b.
2022-04-04 11:37:23 +05:30
Aditya Alok dbd7249e4b
[TEMP] download deps from grimler.se instead of packages.termux.org
- packages.termux.org gives wrong checksum for arm and aarch64 repository metadata
2022-04-04 11:03:30 +05:30
Aditya Alok 3a1acb712b feat(build scripts): allow packages to define extra static split patterns
- add variable `TERMUX_PKG_STATICSPLIT_EXTRA_PATTERNS`

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-09 10:01:57 +09:00
Henrik Grimler b79db7ce73
Revert "[TEMP] download deps from grimler.se instead of packages.termux.org"
This reverts commit 5b432ffbbc.
2022-03-07 14:40:40 +01:00
Henrik Grimler 5b432ffbbc
[TEMP] download deps from grimler.se instead of packages.termux.org
Fosshost mirror is down at the moment.
2022-03-04 08:26:51 +01:00
Henrik Grimler e37646a3ae
Revert "[TEMP] download deps from grimler.se instead of packages.termux.org"
This reverts commit 7850c1d98b.
2022-02-25 08:27:38 +01:00
Henrik Grimler 7850c1d98b
[TEMP] download deps from grimler.se instead of packages.termux.org
Fosshost mirror is down at the moment.
2022-02-24 14:11:43 +01:00
Henrik Grimler 42b4712c15
step_setup_variables: fix warning about undefined TERMUX_MAIN_PACKAGE_FORMAT 2022-02-19 14:41:19 +05:30
Maxython 465159a72e
build-package.sh: change logic for package manager selection to be more stable
termux_step_setup_variables: added logic with TERMUX_PACKAGE_FORMAT
for easier compilation.
2022-02-11 22:38:40 +01:00
Henrik Grimler ed351084a0
termux_step_setup_variables: no need to check termux-{games,science}
Since these repositories have been merged into the main repository
there is no need to check them for dependencies.
2021-12-05 13:18:21 +01:00
Henrik Grimler 96dd5b5f96
Remove unstable-repo from list of repos
It has been merged with main repo so no need to look for package
dependencies in it.
2021-11-14 20:58:36 +01:00
Leonid Pliushch 6572b28692
build-package.sh: introduce TERMUX_PKG_NO_SHEBANG_FIX
This variable will disable shebang fixing during massage step. Normally
such fix shouldn't be disabled, but there are packages where it causes
a huge overhead and is not needed anyway.

Packages that are known to be affected by overhead and take long time
for building:

 * papirus-icon-theme from x11-packages
2021-10-25 12:52:36 +03:00
Leonid Pliushch 653d72b8cf
build-package.sh: use cloudflare-backed package host 2021-10-08 23:54:38 +03:00
Ivan Max 5465f29528
build-package.sh: introduce TERMUX_PKG_GROUPS for pacman packaging format (#7609)
This metadata field allows to define groups to which the given packages belong.

See https://wiki.archlinux.org/title/Pacman#Installing_package_groups
2021-09-28 12:48:55 +03:00
Leonid Pliushch 07852c874b
build-package.sh: allow to select package formats between debian and pacman 2021-09-10 19:55:28 +03:00
Henrik Grimler ecd214881a build-package: add new arg -c for "continue build"
As replacement for TERMUX_PKG_QUICK_REBUILD. Running
./build-package.sh -c <package> starts a build for <package>, but does
not extract and patch the source from scratch. Instead it sets up the
build variables and starts from termux_step_make.

When working on a big package that can take hours to build it is
convenient to be able to build until there is an error, then apply
some new patch (manually) to the source, and then continue from where
the build failed.
2021-08-24 21:40:46 +02:00
Henrik Grimler 2c70621a98 build-package: rename TERMUX_DEBUG to TERMUX_DEBUG_BUILD
To make it more self-explanatory.
2021-08-21 20:55:57 +02:00
Henrik Grimler ea1772da55 termux_step_setup_variables: sort variables alphabetically 2021-08-21 20:54:44 +02:00
Leonid Pliushch c9e8d1cb2b
build-package.sh: use packages.termux.org when running with -I/-i options 2021-06-03 14:59:39 +03:00
Leonid Pliushch 5c45d87234
build-package.sh: use Github Pages repositories for Unstable/X11 packages 2021-05-10 21:01:21 +03:00
Leonid Pliushch a92e355891
build-package.sh: use grimler.se mirrors for unstable & x11 repos
Use non-IPFS repositories for fetching dependencies when building packages.
This is required at least for CI as gateways seem to block requests due to
either rate limit or restriction for usage by cloud platforms.
2021-04-30 16:29:45 +03:00
Leonid Pliushch 107c098419
build-package.sh: try dweb.link ipfs gateway for x11 & unstable repositories 2021-04-28 14:16:17 +03:00