Commit Graph

1473 Commits

Author SHA1 Message Date
Butta 3cd5cc3a43 bump(cmake): 3.25.3 to 3.26.0 2023-03-15 00:54:40 +05:30
Tee KOBAYASHI b17f0ea688 cargo-c: Bump to 0.9.17 2023-03-11 05:45:35 +09:00
Tee KOBAYASHI 02e95796c2 libprotobuf: Bump to 22.1 2023-03-09 12:04:27 +00:00
Tee KOBAYASHI 3302cf8368 cmake: Bump to 3.25.3 2023-03-09 06:29:41 +00:00
Tee KOBAYASHI b409484bd4 composer: Bump to 2.5.4 2023-03-08 13:58:18 +00:00
Tee KOBAYASHI 51fa97994e scripts: Add TERMUX_PKG_GO_USE_OLDER variable 2023-03-08 13:03:37 +00:00
Tee KOBAYASHI 75cf2b83d9 termux_setup_nodejs: Bump Node.js to 18.15.0 2023-03-08 19:19:24 +09:00
Tee KOBAYASHI 9b28ac8e16 termux_setup_meson: Bump Meson to 1.0.1 2023-03-08 06:07:15 +00:00
Tee KOBAYASHI e2a3384838 golang: Bump to 1.20.2 2023-03-08 05:46:37 +00:00
Tee KOBAYASHI 30c20f5371 termux_setup_nodejs: Bump Node.js to 18.14.2 2023-02-24 00:04:07 +09: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
Aditya Alok 6aca466183
termux_setup_ghc_cross_compiler: Bump ghc to v9.2.5
Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:34 +05:30
Aditya Alok 2354b413b5
termux_setup_cabal: Bump cabal to v3.8.1.0
Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:33 +05:30
Tee KOBAYASHI 1cd90830d6 termux_setup_nodejs: Bump Node.js to 18.14.1 2023-02-21 04:50:10 +09:00
Tee KOBAYASHI c0f5627998 scripts: Add `termux_setup_cargo_c` 2023-02-19 15:17:45 +00:00
Tee KOBAYASHI ae0a376f59 libprotobuf: Bump to 22.0
Revdep rebuild follows.
2023-02-19 10:28:34 +00:00
Tee KOBAYASHI c66453e44d scripts: Add some `TERMUX_SUBPKG_*` variables
- `TERMUX_SUBPKG_RECOMMENDS`
- `TERMUX_SUBPKG_SUGGESTS`
- `TERMUX_SUBPKG_PROVIDES`
2023-02-17 10:32:44 +00:00
Tee KOBAYASHI 7410db82ad golang: Bump to 1.20.1 2023-02-15 08:23:56 +00:00
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 259f9a2bce ldd: Depend on binutils-bin
* Include `libaaudio.so` in list of system libs

* Name myself as the maintainer
2023-02-13 11:36:17 +00:00
Henrik Grimler af18f1dac0
scripts: start_build: create libpthread and librt as well
Their functionality is included in libc, but some packages anyways
searches for libpthread.so and librt.so.  Provide these files so that
such configure steps succeed.
2023-02-10 13:52:30 +01:00
Henrik Grimler 9063e5919f
scripts: move libutil.so creation to termux_step_start_build
Instead of in termux_setup_toolchain_XX.  This helper lib does really
not have anything to do with our toolchain so it does not belong in
termux_setup_toolchain.

It is also good to only modify $TERMUX_PREFIX (for other things than
make install) before termux_step_create_timestamp_file has been run,
and termux_step_start_build fits that criteria.
2023-02-10 13:52:28 +01:00
Henrik Grimler 6c5c752173
scripts: toolchain: define CXXFILT var as well
Some packages require it during build (for example openjdk), so let's
make sure the correct one is found.
2023-02-10 13:52:25 +01:00
Henrik Grimler b967e0d825
scripts: add zip to setup-termux
Needed to build openjdk (and probably other packages).

Also sort packages again.
2023-02-10 13:52:19 +01:00
Ivan Max e33f6d6ca1
setup-termux.sh: adding bsdtar package 2023-02-09 09:09:31 +03:00
Tee KOBAYASHI 10aad9439c new package: protobuf-static
Reference: https://github.com/termux/termux-packages/issues/14961
2023-02-09 02:12:18 +00:00
Tee KOBAYASHI e55fe31d29 termux_setup_nodejs: Bump Node.js to 18.14.0 2023-02-08 03:13:37 +09:00
Tee KOBAYASHI 2aa23df1a2 golang: Bump to 1.20 2023-02-03 20:30:02 +00:00
Tee KOBAYASHI 9c2e9d9ca5 scripts: Bump NDK to r25c 2023-02-02 16:38:20 +05:30
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
Tee KOBAYASHI dc63012fa7 termux_setup_meson: Bump Meson to 1.0.0 2023-01-24 06:04:54 +00:00
Henrik Grimler 6e61626b6c
scripts: setup-ubuntu: install additional archiving tools
To allow for additional types of compression in our packages.

See termux/termux-packages#9124.
2023-01-23 08:27:35 +01:00
Tee KOBAYASHI ab156e29d5 termux_step_configure_meson: Allow for debug build 2023-01-20 14:26:44 +00:00
Tee KOBAYASHI 24f9af5390 cmake: Bump to 3.25.2 2023-01-20 04:10:56 +00:00
Tee KOBAYASHI acec7e6460 termux_step_massage: Insert `head -n 1` in shebang fix
to avoid "binary file matches" message.
2023-01-19 09:53:05 +00:00
Tee KOBAYASHI e9b1e0b2da termux_step_massage: Use `if` clause in shebang fix
to avoid error exit.
2023-01-19 09:53:05 +00:00
Butta fbb028d3ae upgpkg(swift): 5.7.2 to 5.7.3 2023-01-19 14:46:46 +05:30
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
Tee KOBAYASHI 13a0d8229e termux_step_massage: Check for unresolved `posix_spawn`
and `posix_spawnp` defined in libandroid-spawn.

There are other symbols defined in libandroid-spawn, but hopefully this
is sufficient for the purpose of guarding underlinking.

Reference: https://github.com/termux/termux-packages/issues/14623
2023-01-18 13:12:50 +09:00
Tee KOBAYASHI 48c4850a97 scripts: Fix `LDFLAGS` for libpython
to avoid overlinking when using libtool.

Reference: https://github.com/termux/termux-packages/issues/14629
2023-01-18 02:26:44 +00:00
Tee KOBAYASHI 5a52b71ff3 termux_setup_python_pip: Add patch for crossenv
which seems to be still necessary to build `python-pip` currently.
2023-01-17 09:09:15 +00:00
Tee KOBAYASHI 5483168847 termux_setup_python_pip: Bump crossenv to 1.4.0 2023-01-17 04:29:45 +00:00
Tee KOBAYASHI 1a47737645 termux_git_clone_src: Exclude epoch from default branch 2023-01-17 00:25:17 +00:00
Ivan Max 5a29e62c76
fix(scripts/termux_setup_python_pip.sh): popd removal (#14599) 2023-01-16 15:16:37 +03:00
Leonid Pliushch 6318aab0cd
fix(scripts/setup-offline-bundle.sh): don't install pip
As of now this cannot be done for offline bundle.

 ERROR: /data/data/com.termux/files/usr/bin/python3.11 does not exist
2023-01-16 12:23:03 +02: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
Tee KOBAYASHI 695de19a05 lint-packages: Check package / subpackage name
Source: https://www.debian.org/doc/debian-policy/ch-controlfields.html#source
2023-01-15 13:28:30 +00:00
Tee KOBAYASHI 98f2ec2c32 auto-update: Disable repology update method
temporarily.

Reference: https://github.com/termux/termux-packages/issues/14544
2023-01-15 10:56:18 +09:00
Tee KOBAYASHI 78715de5be termux_step_massage: Fix logic for undefined symbols
The pattern `for lib in "$(find [...])"` does not work if `find` matches
more than one file. Double quotes around `$(...)` must be removed.

This bug was introduced in 849112f9e7, and
the check did not work correctly from then on, until now.
2023-01-14 17:01:59 +09:00
Yaksh Bariya 82e222eca7
chore(scripts/config*): update to latest revision
Seems to be outdated since a long time. Let's better fix it. I don't
think there will be any breaking changes (like some weird new
compilation errors or something).
2023-01-13 19:23:12 +05:30
Yaksh Bariya b2116fb87a
chore(scripts/setup-archlinux.sh): make up to date to recent changes
python2 is no longer available in official repositories. See https://archlinux.org/news/removing-python2-from-the-repositories/

Also depend on jq directly. I know there are a lot of packages missing
from the list. But I guess it will be better for the contributor to
install them as needed instead of keeping a lot of unnecessary stuff
installed.
2023-01-11 18:19:50 +05:30
Tee KOBAYASHI eaaaff6d35 golang: Bump to 1.19.5 2023-01-10 22:56:51 +00:00
Tee KOBAYASHI ac0d70a63a auto-update: Exclude epoch in version comparison
to avoid warnings like

```
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2:0.8.3 is an invalid version and will not be supported in a future release
```
2023-01-10 01:54:19 +00:00
Tee KOBAYASHI f68fba50b7 termux_step_massage: Check for `$PREFIX/man`
which indicates packaging error.
2023-01-10 10:05:05 +09:00
ifurther dd3c9ea480 New package: codeblocks
codeblocks: add patch file for wxWidgets 3.1.6 and disable compiler
2023-01-10 00:56:58 +00:00
Tee KOBAYASHI cb8bc5eccf termux_step_massage: Check for Debianish Python dir
`$PREFIX/lib/python3/dist-packages` which indicates packaging error.
2023-01-08 16:46:29 +09:00
Henrik Grimler bb298ba27f
scripts: update hint in properties.sh regarding ndk-packages
%ci:no-build
2023-01-07 10:37:42 +01:00
Tee KOBAYASHI 72db1a09ff termux_step_massage: Check for `$PREFIX/$PREFIX`
which almost always indicates packaging error.
2023-01-07 06:44:41 +09:00
Chongyun Lee 4dfa1f1836 setup-ubuntu.sh: install deps 2023-01-06 21:22:56 +00:00
Tee KOBAYASHI fbaecc5c26 termux_step_massage: Check for unresolved symbols
defined in libandroid-execinfo as well.

Reference: https://github.com/termux/termux-packages/issues/14285
2023-01-04 06:46:27 +09:00
Henrik Grimler fc6900d9fa Revert update of ndk-packages
This WIP was not suppose to be pushed to master.
2023-01-03 21:10:03 +01:00
Henrik Grimler a39d494413 scripts: update hint in properties.sh regarding ndk-packages 2023-01-03 20:51:40 +01:00
Henrik Grimler 5d08ee2424
scripts: fix typo pacakge -> package 2023-01-03 19:53:23 +01: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
Henrik Grimler 20bd0f0dc0
scripts: use git+[...] instead of [...].git for git urls
Not all source code hosters support the .git suffix (for example
sourcehut).  Use a git+ prefix instead to indicate that a url is a git
repo.
2023-01-01 18:31:38 +01:00
Henrik Grimler 6df47823f5
scripts: setup-termux: install scdoc as well 2022-12-31 11:15:41 +01:00
Ivan Max 7f8821740f
fix version view in package info for pacman (#14203) 2022-12-29 10:14:51 +03:00
Henrik Grimler 996c30a3c4
scripts: setup-termux: add uuid-utils to list of required packages 2022-12-28 09:14:23 +01:00
Henrik Grimler db6b2db80b
scripts: warn if subpackage files can not be found 2022-12-27 17:22:22 +01:00
Tee KOBAYASHI ad7a67eeee scripts: Provide hooks triggered by failure in configure 2022-12-27 11:25:23 +00:00
Henrik Grimler ae454e2ef4
scripts: termux_step_configure_autotools: rm debug cat of config.log
While it can be nice for github actions builds it is annoying for
local builds as it might fill up the terminal buffer.
2022-12-27 11:35:48 +01:00
Tee KOBAYASHI 5a27cae55c properties.sh: Bump build-tools to 33.0.1 2022-12-25 08:25:36 +00:00
Tee KOBAYASHI 2db283089c setup-ubuntu.sh: Install libyaml-dev 2022-12-23 14:38:59 +09:00
Chongyun Lee 54ed8ece33 scripts(toolchain): bump after removing EGL headers 2022-12-21 11:02:18 +00:00
Chongyun Lee 2d6635f0b2 scripts(toolchain): don't include EGL headers 2022-12-21 11:02:18 +00:00
Tee KOBAYASHI 6a52295558 libprotobuf: Bump to 3.21.12 2022-12-16 01:35:45 +00:00
Butta 9f1e2c5165 upgpkg(swift): 5.7.1 to 5.7.2 2022-12-14 17:44:35 +05:30
Henrik Grimler 8087700a17 Revert "[TEMP] use grimler.se to download packages"
This reverts commit 4efac69ffd.
2022-12-10 12:16:55 +01:00
Henrik Grimler 4efac69ffd
[TEMP] use grimler.se to download packages
Until migration form fosshost to new vps is complete.

See termux/termux-packages#13804.
2022-12-10 10:00:05 +01:00
Jia Yuan Lo 64644e5cc7 scripts: add termux_setup_mold
Optional and disabled for now
2022-12-10 16:15:00 +08:00
Jia Yuan Lo b88e09873d scripts: remove termux_setup_gnu_as_23c
Replaced by termux_setup_no_integrated_as
2022-12-10 16:15:00 +08:00
Tee KOBAYASHI 4de4aa5ee3 libprotobuf: Bump to 3.21.11 2022-12-10 02:34:18 +00:00
Tee KOBAYASHI 355afd481f setup-ubuntu.sh: Install packages needed by motif 2022-12-10 00:59:53 +00:00
Chongyun Lee 4c7eb482be
chore(scripts): improve `termux_git_clone_src`
The origin one copies twice checkout folder and cannot detect whether package has updated.
2022-12-09 22:02:48 +01:00
Tee KOBAYASHI 6574782c7d golang: Bump to 1.19.4 2022-12-06 21:28:12 +00:00
Chongyun Lee ca3322bf31
fix(scripts): bug in termux_step_get_dependencies 2022-12-04 18:53:50 +01:00
Tee KOBAYASHI dd393de5b7 cmake: Bump to 3.25.1 2022-12-01 00:25:10 +00:00
Tee KOBAYASHI 38cd98797b libprotobuf: Bump to 3.21.10 2022-12-01 00:25:01 +00:00
Tee KOBAYASHI e0b888c4ab setup-ubuntu.sh: Install python3-sphinx-rtd-theme 2022-11-23 20:42:26 +09:00
Tee KOBAYASHI ed984bceeb setup-ubuntu.sh: Install lua5.3 2022-11-23 10:27:17 +00:00
Arun ee7edeb16f upgpkg(main/cmake): 3.25.0 2022-11-22 20:39:03 +05:30
Tee KOBAYASHI 4ee2e32f7b Use `bump(repo/pkgname)` as the mnemonic for bump
I just can't tolerate the previous one shown in Actions timeline anymore.
2022-11-20 13:27:48 +09:00
T-Dynamos 6e1b4dba2b
chore(scripts): improve revbump 2022-11-19 22:38:11 +01:00
Tee KOBAYASHI 9cf475b2bb cmake: Bump to 3.24.3 2022-11-18 04:13:26 +00:00
Leonid Pliushch 33d13b6628
properties: allow alternate paths of builder config
See https://github.com/termux/termux-app/issues/2826
2022-11-14 16:16:53 +02:00
Tee KOBAYASHI bbd5811170 termux_setup_no_integrated_as: Require binutils-bin
on device.
2022-11-13 08:38:51 +09:00
Tee KOBAYASHI 510c6adbe0 properties.sh: Bump build-tools to 33.0.0
* Bump SDK revision to 9123335

* Remove no longer used platforms;android-21

* Do not remove "unused parts" from SDK (which are actually used)

* Make it possible to use alternative JAVA_HOME via TERMUX_JAVA_HOME
2022-11-12 03:04:24 +00:00
Henrik Grimler ab4987db11
termux_step_setup_toolchain: bump toolchains after ndk-patches update 2022-11-09 23:27:16 +01:00
Tee KOBAYASHI 3f1be51372 Append `share/pkgconfig` to PKG_CONFIG_LIBDIR 2022-11-09 08:19:05 +00:00
Tee KOBAYASHI ac9086050e termux_setup_no_integrated_as: Check for binutils-cross 2022-11-09 13:38:50 +09:00
Tee KOBAYASHI bd93dd3532 termux_setup_no_integrated_as: Add new function
%ci:no-build
2022-11-08 22:50:01 +00:00
Tee KOBAYASHI fac4907566 setup-ubuntu.sh: Bump Clang/LLVM to 13 2022-11-08 13:43:32 +00:00
Tee KOBAYASHI 323bfda7fb libgxps: Adapt to termux_setup_gir
%ci:no-build
2022-11-06 19:53:34 +09:00
Tee KOBAYASHI 62c590ba15 nodejs-lts: Bump to 16.18.1 2022-11-05 04:53:40 +00:00
Tee KOBAYASHI 69e06970d3 golang: Bump to 1.19.3 2022-11-03 04:09:44 +00:00
Tee KOBAYASHI dd5296cb94 termux_create_*_subpackages: Fix staticsplit 2022-11-02 18:05:20 +00:00
Butta 0c32c6c796 upgpkg(swift): 5.7 to 5.7.1 2022-11-02 23:10:26 +05:30
Tee KOBAYASHI 0110964d3e libprotobuf: Bump to 3.21.9 2022-11-02 15:12:15 +00:00
Henrik Grimler fec5c67c0e
scripts: bump toolchain after GLES header removal 2022-11-01 21:15:10 +01:00
kawanakaiku d8bfd748b5
scripts: dont include GLES vulkan headers 2022-11-01 21:14:40 +01:00
Aditya Alok 00abbffccf
scripts(setup-ubuntu): install lua5.1 for luarocks
Signed-off-by: Aditya Alok <alok@termux.dev>
2022-11-01 12:46:14 +05:30
Lucy Phipps c2b45911cd
setup-ubuntu.sh: i meant python-wheel-common 2022-10-29 23:55:10 +01:00
Lucy Phipps 1f60ab0fcd
setup-ubuntu.sh: install python3-wheel-common
hopefully this fixes e.g. asciinema
2022-10-29 23:29:50 +01:00
Tee KOBAYASHI d968da9f13 termux_setup_python_crossenv: Fix PYTHONPATH
in cross-python.
2022-10-27 16:59:28 +00:00
Tee KOBAYASHI ae042ded67 setup-ubuntu.sh: Restore python3.10-venv
Needed by Python crossenv with Python 3.10. We don't have 3.11 yet.
2022-10-27 22:58:34 +09:00
Tee KOBAYASHI f017785655 libprotobuf: Bump to 3.21.8 2022-10-26 23:56:36 +00:00
Tee KOBAYASHI ec56dad97c setup-ubuntu.sh: Install librsvg2-dev 2022-10-27 06:15:39 +09:00
Tee KOBAYASHI f5d1fef582 termux_setup_python_crossenv: Adapt to Python 3.11 2022-10-25 18:16:47 +00:00
Henrik Grimler b3b83c6662
setup-ubuntu.sh: install python3.11 as well
In preparation of python update from 3.10 to 3.11.
2022-10-25 19:31:34 +02:00
Tee KOBAYASHI d991e39db6 libxfce4ui: Adapt to termux_setup_gir
%ci:no-build
2022-10-25 01:54:35 +09:00
Henrik Grimler 1adfe3cffc
setup-ubuntu: install python3-sphinxcontrib.qthelp as well
Needed by extra-cmake-modules, see termux/termux-packages#12528.
2022-10-24 13:07:21 +02:00
Tee KOBAYASHI c96f4a7942 poppler: Build introspection data 2022-10-24 14:27:54 +09:00
Tee KOBAYASHI ae9435b54e libdazzle: Build introspection data 2022-10-24 06:05:54 +09:00
Tee KOBAYASHI c388bf4d9f babl: Build introspection data 2022-10-23 02:25:40 +09:00
Tee KOBAYASHI 1db6582317 termux_setup_gir: Wrap `valac` as well 2022-10-22 19:47:56 +09:00
Kevin Williams bb8fe316d6
scripts/properties.sh: change primary host url 2022-10-22 10:36:51 +08: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
Tee KOBAYASHI 484355a25b termux_setup_gir: Use `vapigen` wrapper 2022-10-22 04:58:47 +09:00
Tee KOBAYASHI 9acb8a2880 termux_setup_gir: Support on-device building
%ci:no-build
2022-10-22 01:37:14 +09:00
sogaiu 41207be9c2 Vagrantfile: update to Ubuntu 22.04 jammy 2022-10-21 17:44:52 +03:00
Yaksh Bariya c4b709bd99
chore(scripts): termux_setup_nodejs v16.18.0 2022-10-21 10:51:49 +05:30
Tee KOBAYASHI a45f6875cc termux_setup_meson: Fix Python module installation
`$TERMUX_PREFIX/lib/python3/dist-packages` should never be used.
2022-10-20 23:44:13 +09:00
Tee KOBAYASHI eae4194b00 gobject-introspection: Build introspection data 2022-10-20 23:44:13 +09:00
Tee KOBAYASHI 0b2ac073fc setup-ubuntu.sh: Install bash-static 2022-10-20 10:58:23 +09:00
Ivan Max 92bc24d573
improve(termux_step_create_pacman_install_hook.sh): adding preupg and postupg function (#12409) 2022-10-18 10:19:25 +03:00
Uchiha Kakashi d751eb2a15
fix(scripts): typo in termux_pkg_upgrade_version 2022-10-15 13:46:59 +08:00
Chongyun Lee a9d64807d4
fix(scripts): building failure when auto-updating 2022-10-15 08:09:37 +05:30
Tee KOBAYASHI 03f0cbe342 libprotobuf: Bump to 3.21.7 2022-10-13 18:57:50 +09:00
Yaksh Bariya 5e7968852f
chore(CONTRIBUTING.md): Remove unnecessary message for update and downgrade
Earlier convention:
  upgpkg(<repo>/<package>): update to <ver>
Newer convention:
  upgpkg(<repo>/<package>): <ver>
Similarly same for dwnpkg.

Thanks to @truboxl for the suggestion
2022-10-11 14:01:46 +05:30
Chongyun Lee 400826006e
fix(scripts): fix jq error
Hope that this will fix #12313
2022-10-10 20:55:53 +08:00
Leonid Pliushch 3119ecf558
scripts/setup-offline-bundle.sh: fix tmp directory 2022-10-10 12:36:52 +03:00
Leonid Pliushch c885dc1788
scripts/setup-offline-bundle.sh: fix variables 2022-10-10 12:14:20 +03:00
Yaksh Bariya 23f5e3e9b7
scripts(bin/*): adapt commit messages to new guidelines 2022-10-10 14:34:45 +05:30
Leonid Pliushch 19286f075e
scripts/properties.sh: change primary host url 2022-10-10 10:57:18 +03:00
Chongyun Lee a155b78291 lilypond: update to 2.23.13 2022-10-08 17:37:39 +08:00
Arun 6b791a9fcf upgpkg(main/golang): update to 1.19.2 2022-10-06 18:42:24 +05:30
Yaksh Bariya 1aa6998159
scripts(termux_setup_nodejs): update to v16.17.1 2022-10-06 08:58:55 +05:30
Henrik Grimler a4f4cb4e8b
updpkg(main/neovim): update to 8.0.0
neovim-nightly has already been 8.0.0 for a while, and has apparently
built without issues.  I was not able to build it without first
updating libvterm and adding lua-{lpeg,mpack} to docker image though.
2022-10-06 07:11:57 +05:30
Henrik Grimler 4199c2a1fe
scripts: fix grep warnings from termux_step_massage
After upgrading grep from 3.7 to 3.8 it now warns when pattern
contains unnecessary escaped characters, like:

grep: warning: stray \ before !
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before !
grep: warning: stray \ before /
grep: warning: stray \ before !
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before !
grep: warning: stray \ before /

Silence these warnings by fixing our termux_step_massage function.
2022-10-01 12:15:02 +02:00
Tee KOBAYASHI b355119cbb aapt: Bump to 13.0.0.6 2022-09-29 07:59:30 +09:00
Tee KOBAYASHI a8a957dfaf termux_setup_protobuf: Update checksum
Follow-up of commit 2727d70bad.
2022-09-28 05:49:15 +09:00
tjhexf 4c971eb992
upgpkg(main/cmake): update to 3.24.2 (#12100)
* upgpkg(main/cmake): update to 3.24.2
2022-09-25 09:28:31 +05:30
Uchiha Kakashi 7eeab3fba5
setup-ubuntu.sh: add desktop-file-utils for ghex 2022-09-24 22:51:21 +02:00
Tee KOBAYASHI b8c4535b55 termux_step_configure_autotools: Improve `*config` pickup
to exclude binaries such as `pkg-config`.
2022-09-21 14:53:33 +09:00
Henrik Grimler 66a8fe6140
scripts(setup_rust): do not error if CFLAGS is unset
termux_setup_rust might be run several times in a build recipe, so
that continued (`./build-packages.sh -c`) builds can be supported.
The setup function uses and then unsets CFLAGS, resulting in an error
the second time termux_setup_rust is run.
2022-09-19 02:09:36 +02:00
Butta 669b62f293 upgpkg(swift): 5.6.3 to 5.7 2022-09-14 23:28:08 +05:30
Chongyun Lee 268452c314 scripts: update to ndk r25b 2022-09-15 00:37:34 +08:00
agnostic-apollo 7a1e0164ee scripts/util/docker/docker.sh: Fix trap failing if docker process or subprocesses have already been killed or not found 2022-09-13 18:43:38 +08:00
Arun 0c5ed87a73 upgpkg(main/golang): update to 1.19.1 2022-09-08 19:31:44 +03:00
Jia Yuan Lo 97572fbb0d
scripts: improve setup-android-sdk.sh support in Github Actions 2022-09-03 10:29:57 +02:00
Butta a06a89a012 upgpkg(swift): 5.6.2 to 5.6.3 2022-09-03 02:24:55 +05:30
Arun de09925717 upgpkg(main/libprotobuf): update to 3.21.5 2022-08-31 22:24:21 +03:00
Ivan Max 0489576241
generate-bootstraps.sh: changing the main pacman package repository 2022-08-30 21:50:51 +03:00
Butta 2050c60008 chore(scripts/setup-termux.sh): patchelf no longer needed since the Swift 5.6.1 update
%ci:no-build
2022-08-28 12:08:49 +05:30
Arun 73948c0b62 upgpkg(main/cmake): update to 3.24.1 2022-08-27 12:27:35 +05:30
Henrik Grimler c07ea6ab53
Revert "scripts: use grimler.se mirror when generating bootstraps for now"
This reverts commit ce120bbc77.
2022-08-26 07:55:10 +02:00
Henrik Grimler 1190208ed4
Revert "scripts: use grimler.se mirror for downloading debs"
This reverts commit bd73dd61bd.
2022-08-26 07:54:55 +02:00
Jia Yuan Lo 035c918418
scripts: add termux_setup_gnu_as_23c for NDK r25 (#11615)
NDK r25 has removed GNU Assembler (GAS). Removal of GAS introduced a number of build issues.
The most prominent is:
/usr/bin/as: unrecognized option '-EL'

Some options to solve this:
1. Disable building custom assembly and suffer performance penalty
2. Hand rewrite the custom assembly to be LLVM compatible
3. Wait for upstream to write LLVM compatible assembly (openssl, openssl-1.1)
4. Bring back GAS from NDK r23c

In this commit, GAS is brought back as a separate toolchain instead of following NDK r23c file hierarchy.
We pass "--gcc-toolchain=GAS_TOOLCHAIN_DIR" to NDK r25 clang to detect.
Packages only have to add "termux_step_gnu_as_23c" to build.sh to enable GAS.
In the future, we expect packages should follow option 3 more than option 4 as that is a last resort.

This commit also bumps revision for packages that rely (or previously rely) on "-fno-integrated-as":
hors, libffi, libgcrypt, libpixman, openssl, openssl-1.1

Co-authored-by: Henrik Grimler <grimler@termux.dev>
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
2022-08-24 23:17:08 +08:00
Henrik Grimler ce120bbc77
scripts: use grimler.se mirror when generating bootstraps for now
Fosshost is decommissioning its service on August 28th, so lets use
the grimler.se until we have managed to set up a new repo, somewhere
else.
2022-08-24 09:35:47 +02:00
Henrik Grimler bd73dd61bd
scripts: use grimler.se mirror for downloading debs
This is done since Fosshost will be decommissioned on 28th of August.
2022-08-24 09:27:48 +02:00
MedzikUser 188397112d
golang: update to 1.19 2022-08-23 12:51:01 +02:00
2096779623 6a6ff5716d
licenses: install license file for X11
Signed-off-by: 2096779623 <admin@utermux.dev>
2022-08-23 08:44:57 +02:00
2096779623 7c4c6692f0
linter: add X11 license (https://spdx.org/licenses/X11.html)
Signed-off-by: 2096779623 <admin@utermux.dev>
2022-08-23 08:44:51 +02:00
Henrik Grimler 960026cc47
scripts: bump toolchain after termux-elf-cleaner fix 2022-08-18 17:01:50 +02:00
Chongyun Lee d32ad10f1f
scripts/toolchains: set api-level for elf cleaner 2022-08-18 22:38:53 +08:00
Henrik Grimler b6b0ee380c
scripts: setup-{ubuntu,archlinux}.sh: install re2c for php 2022-08-15 21:55:44 +02:00
Henrik Grimler 5070174c4d
scripts(massage): fix undefined symbols grep pattern
This caused undefined symbols to go undetected in libzmq in latest
build.  Probably more packages are affected, should do a rebuild of
all packages again to check for undefined symbols.
2022-08-14 09:17:07 +02:00
Jia Yuan Lo c2f84f4118
scripts(toolchain): dont include NDK vulkan headers 2022-08-13 12:21:55 +02:00
Butta c621ca0437
fixup(termux_setup_swift): TERMUX_STANDALONE_TOOLCHAIN is no longer defined till after the host build
I checked all 30 packages and the CMake setup script that use this variable, and this is
the only one that needed to be changed.
2022-08-13 12:21:15 +02:00
Henrik Grimler 6802ecc666
scripts(properties): actually update to ndk-r25 2022-08-13 12:20:06 +02:00
Henrik Grimler d6ad4c50b5
scripts(toolchain): add possibility to install android NDK 25
Same ndk-patches and termux_step_setup_toolchain can be used as for
NDK 23c it seems.
2022-08-13 12:20:04 +02:00
Henrik Grimler ef7cb78563
scripts(toolchain): remove termux_setup_standalone_toolchain func
Run everything in termux_setup_toolchain_23c instead.  There is no
need to have two functions.
2022-08-13 12:20:02 +02:00
Henrik Grimler e7f4ad8b6d
scripts: rename termux_step_setup_toolchain to indicate NDK version
And keep ndk-patches in 23c/ subdirectory.  Run
termux_step_setup_toolchain_23c only if TERMUX_NDK_VERSION equals 23c.

This is a step towards having the possibility to use different NDK
versions.  Using a different NDK version than the one termux
officially supports should *really* not be done except for
testing/debug/development reasons, or if it is strictly necessary to
be able to compile a program (for example for packages that need a
fortran compiler, which at the moment is only supported with old
gcc-using NDKs).
2022-08-13 12:19:59 +02:00
Henrik Grimler 5df676bf3a
scripts(setup_toolchain): keep toolchain revision in setup function
Having it in termux_step_start_build is confusing, have it next to
related code instead.
2022-08-13 12:19:54 +02: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
Henrik Grimler 924b664573
scripts: also add built subpkgs to $TERMUX_BUILT_PACKAGES_DIRECTORY
Otherwise a package with subpackages might be built many times if
packages that depend on a it, or its subpackages, are modified.
2022-08-09 11:15:30 +02:00
Chongyun Lee 78443182a0
build-scripts: fix termux_step_create_subpkg_debscripts 2022-08-07 10:00:42 +02:00
Maxython 47359232f0 generate-bootstraps.sh: including the termux-keyring package for bootstrap based on pacman 2022-08-03 16:25:34 +03:00
Henrik Grimler 9641ff5fba
scripts(massage): use $READELF instead of hardcoding llvm-readelf 2022-08-02 11:48:51 +02:00
Henrik Grimler 792ccc6ca3
fix(scripts,step_massage): continue in for loop, not return
Missed this when changing back and forth from having the code in a
subfunction instead.

This caused termux_step_massage to return prematurely, and subpackages
to not be generated (which is how I noticed it).

Fixes commit 849112f9e7 ("scripts(massage): remove symbol loop in
undefined syms check").
2022-08-01 10:59:43 +02:00
Henrik Grimler 849112f9e7
scripts(massage): remove symbol loop in undefined syms check
Instead create a (rather large) grep pattern, and call egrep only
once.
2022-07-31 20:12:54 +02:00
Henrik Grimler 0de0a8dd52
scripts(termux_error_exit): echo with -e to allow multiline messages 2022-07-31 20:12:51 +02:00
Henrik Grimler 146a5fb9c8
scripts(start_build): fix typo
Fixes 8129569eef ("scripts: fix for building on device")
2022-07-31 19:00:35 +02:00
Li Chong Yun 8129569eef
scripts: fix for building on device
The pre-built binary cannot execute on device. Use the one from repo instead.
2022-07-31 18:56:55 +02:00
Henrik Grimler 5ab6d52854
scripts(massage): specify target api level when running elf-cleaner
Termux-elf-cleaner 2.0.0 added the possibility to specify target api
level with --api-level, instead of just during compile time.
2022-07-30 16:44:07 +02:00
Henrik Grimler 5d07daf772
scripts(start_build.sh): download pre-compiled termux-elf-cleaner
CI now compiles the program on every release, so lets download that
instead of the source in termux_step_start_build.sh.
2022-07-30 16:44:05 +02:00
Henrik Grimler ae57e3fae0
scripts(setup-termux.sh): install xmlto, needed by git 2022-07-30 16:27:31 +02:00
Henrik Grimler 9d695d6f4b
scripts(setup-ubuntu.sh): install openjdk-17 from ppa repo
This is necessary if we are to build openjdk-17 after update of docker
image to ubuntu 22.04.
2022-07-30 14:34:07 +02:00
Lucinda May Phipps 7e2daf81e1 termux-step-massage: faster empty package check 2022-07-28 15:27:20 +05:00
agnostic-apollo f598de4ae4 fix(termux_step_massage): Fix typo in 034f29eb 2022-07-28 15:27:20 +05:00
agnostic-apollo 7b9b9b6224 fix(run-docker.sh): Fix docker exec not passing kill signals (ctrl+c) to commands in some cases leaving processes still running
If `--tty` is not passed to `docker exec` because stdout is not available (`[ ! -t 1 ]`), like due to redirection to file (`&> build.log`) or if stdin is not available (`< /dev/null`), then docker does not forward kill signals to the process started and they remain running.

To fix the issue, the `DOCKER_EXEC_PID_FILE_PATH` env variable with the value `/tmp/docker-exec-pid-<timestamp>` is passed to the process called with `docke exec` and the process started stores its pid in the file path passed. Traps are set in `run-docker.sh` that runs the `docker exec` command to receive any kills signals, and if it does, it runs another `docker exec` command to read the pid of the process previously started from `DOCKER_EXEC_PID_FILE_PATH` and then kills it and all its children.

See Also:

https://github.com/docker/cli/issues/2607
https://github.com/moby/moby/issues/9098
https://github.com/moby/moby/pull/41548
https://stackoverflow.com/questions/41097652/how-to-fix-ctrlc-inside-a-docker-container

Also passing `--init` to `docker run` to "Run an init inside the container that forwards signals and reaps processes", although it does not work for above cases, but may helpful in others. The `--init` flag changes will only engage on new container creation.

https://docs.docker.com/engine/reference/run/#specify-an-init-process

https://docs.docker.com/engine/reference/commandline/run/

```
./scripts/run-docker.sh ./build-package.sh -f libjpeg-turbo  &> build.log
^C
$ ./scripts/run-docker.sh ps -efww
Running container 'termux-package-builder' from image 'termux/package-builder'...
UID          PID    PPID  C STIME TTY          TIME CMD
builder        1       0  0 05:48 pts/0    00:00:00 bash
builder     9243       0  0 06:01 pts/1    00:00:00 bash
builder    28127       0  0 06:12 ?        00:00:00 /bin/bash ./build-package.sh -f libjpeg-turbo
builder    28141   28127  0 06:12 ?        00:00:00 /bin/bash ./build-package.sh -f libjpeg-turbo
builder    28449   28141  1 06:12 ?        00:00:00 ninja -w dupbuild=warn -j 8
builder    28656   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28657   28656 79 06:12 ?        00:00:01 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28694   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28695   28694 89 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28728   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28729   28728  0 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28731   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28734   28731  0 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28740   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28741   28740  0 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28744       0  0 06:12 pts/2    00:00:00 ps -efww
builder    28748   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28752   28748  0 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28753   28449  0 06:12 ?        00:00:00 /bin/sh -c /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28754   28753  0 06:12 ?        00:00:00 /home/builder/.termux-build/_cache/android-r23c-api-24-v0/bin/clang
builder    28755   28449  0 06:12 ?        00:00:00 ninja -w dupbuild=warn -j 8
$ ./scripts/run-docker.sh ./build-package.sh -f libjpeg-turbo  &> build.log
$ ./scripts/run-docker.sh ./build-package.sh -f libjpeg-turbo
Running container 'termux-package-builder' from image 'termux/package-builder'...
ERROR: Another build is already running within same environment.
```
2022-07-28 15:27:20 +05:00
agnostic-apollo 571db28a3d termux_step_configure_cmake: Revert CMAKE_INSTALL_LIBDIR old behaviour changed in 2af00064
Absolute paths are still allowed in `DCMAKE_INSTALL_LIBDIR` as per https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

Different packages have different way of handling `DCMAKE_INSTALL_LIBDIR`. The `libprotobuf` is appending an absolute path to `build` directory (#10068), while `libjpeg-turbo` is not appending a relative `lib` path to `DCMAKE_INSTALL_PREFIX` and instead  appending to `build` directory and so all the lib files stay at `/home/builder/.termux-build/libjpeg-turbo/build/lib` and hence won't get added to the `deb`, which results in `openjdk-17` failing if `-i` is not passed to `build-package.sh`, since it can't find `libjpeg.so` with `-L${TERMUX_PREFIX}/lib` after compilation from source, unless `-L$TERMUX_TOPDIR/libjpeg-turbo/build/lib` is passed.

Considering that most packages would likely be considering an absolute path passed in `DCMAKE_INSTALL_LIBDIR` to actually be absolute, the default behaviour should be reverted, specially considering it is what's been working, otherwise lot of packages would need testing, like from https://github.com/termux/termux-packages/commit/9155acd040.

```
checking for which libjpeg to use... system
checking jpeglib.h usability... yes
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!
checking jpeglib.h presence... no
checking for jpeglib.h... yes
configure: WARNING: jpeglib.h: proceeding with the compiler's result
configure: error: --with-libjpeg=system specified, but no libjpeg found
checking for jpeg_CreateDecompress in -ljpeg... no
configure exiting with result code 1
```

```
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libturbojpeg.so
-- Installing: /data/data/com.termux/files/usr/bin/tjbench
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libturbojpeg.a
-- Installing: /data/data/com.termux/files/usr/include/turbojpeg.h
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libjpeg.a
-- Installing: /data/data/com.termux/files/usr/bin/rdjpgcom
-- Installing: /data/data/com.termux/files/usr/bin/wrjpgcom
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/README.ijg
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/README.md
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/example.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/tjexample.c
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/libjpeg.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/structure.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/usage.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/wizard.txt
-- Installing: /data/data/com.termux/files/usr/share/doc/libjpeg-turbo/LICENSE.md
-- Installing: /data/data/com.termux/files/usr/share/man/man1/cjpeg.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/djpeg.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/jpegtran.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/rdjpgcom.1
-- Installing: /data/data/com.termux/files/usr/share/man/man1/wrjpgcom.1
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/pkgconfig/libjpeg.pc
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/pkgconfig/libturbojpeg.pc
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
-- Installing: /data/data/com.termux/files/usr/include/jconfig.h
-- Installing: /data/data/com.termux/files/usr/include/jerror.h
-- Installing: /data/data/com.termux/files/usr/include/jmorecfg.h
-- Installing: /data/data/com.termux/files/usr/include/jpeglib.h
-- Installing: /home/builder/.termux-build/libjpeg-turbo/build/lib/libjpeg.so
-- Installing: /data/data/com.termux/files/usr/bin/cjpeg
-- Installing: /data/data/com.termux/files/usr/bin/djpeg
-- Installing: /data/data/com.termux/files/usr/bin/jpegtran
...
2022-07-28 15:27:20 +05:00
agnostic-apollo b9b5987319 fix(build-package.sh): Ensure dependency packages are force rebuilt as well if `-f` is passed 2022-07-28 15:27:20 +05:00
agnostic-apollo cd2928cbe1 fix(build-package.sh): Do not use dependencies while building from repo if it hosts packages built for a different package name than TERMUX_APP_PACKAGE 2022-07-28 15:27:20 +05:00
Li Chong Yun edbfe03e77
profile.json: update to e258d66f17 2022-07-26 15:57:12 +08:00
Leonid Pliushch c532fff051
chore(scripts/Dockerfile): update comments about build/push 2022-07-23 13:35:31 +03:00
Leonid Pliushch 314c6a8aff
enhance(scripts/Dockerfile): upgrade ubuntu version
Ubuntu 21.10 reached its end of life.
2022-07-23 13:35:31 +03:00
Uchiha Kakashi c2ade8c29a
run-docker.sh: update user id
Since c4041bcf45, we have changed the default user id of builder from 1000 to 1001.
2022-07-23 10:29:54 +08:00
Leonid Pliushch 2205ad383e
fix(scripts/Dockerfile): add missing "&&" 2022-07-23 00:28:39 +03:00
Leonid Pliushch c4041bcf45
enhance(scripts/Dockerfile): set builder user id to 1001
This will speed up builds on GitHub Actions since runner user id is 1001.
2022-07-23 00:25:51 +03:00
Leonid Pliushch dc3869ad37
enhance(scripts): use GitHub package registry for Docker image
Should provide better (maybe) download speed when using GitHub Actions.
2022-07-23 00:19:08 +03:00
Henrik Grimler bc0fa8e154 chore(scripts/*): add shebang to scripts that can be run
Most scripts are set up to just be sourced, but these ones can handle
being run as well. They have not had a shebang set though, use
/usr/bin/bash to ensure they work as intended.
2022-07-22 16:38:44 +02:00
Henrik Grimler 034f29eb0e scripts(massage): only suggest autoreconf if configure.{ac,in} exist 2022-07-22 16:38:44 +02:00
Jia Yuan Lo 16d890f323 enhance(run-docker.sh): add support for Fedora 2022-07-15 22:12:05 +08:00
Chongyun Lee 9d2a355db3 get_hash_from_file.py: ignore Packages.gz/bz2 in Release file 2022-07-11 10:55:57 +02:00
Chongyun Lee 90fda1305b chore: Move REPO-related variables to properties.sh 2022-07-11 15:43:24 +08:00
Uchiha Kakashi 82524e036d
termux_setup_python_crossenv: update to 1.3.0 2022-07-11 03:38:31 +08:00
Yaksh Bariya 5806718974
chore,scripts(properties.sh): update note regarding Repology updater
See termux/repology-metadata@d48519bcb5
for why this note was updated
2022-07-03 16:31:20 +05:30
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
Henrik Grimler 1ef9a5d5d2
scripts(setup-ubuntu): install curl headers as well
Needed by txikijs's hostbuild step.

Fixes https://github.com/termux/termux-packages/issues/11085.
2022-06-29 07:29:43 +02:00
Henrik Grimler be5c7ffc60
scripts(setup-ubuntu.sh): install libjson-perl
Required by samba 4.16.2.
2022-06-26 10:51:36 +02:00
Butta 458c71668c enhance(termux_setup_swift): add a config file to cross-compile Swift packages
Also, fix the checks for whether Swift is installed in the Termux app.
2022-06-25 22:55:36 +05:30
Butta a0f84bfd9a fix(termux_step_massage): use llvm-readelf instead, as that's what the NDK and Termux use 2022-06-25 22:55:36 +05:30
Henrik Grimler 370dffaf40
Revert "scripts/properties.sh: allow for jdk in /usr/lib/jvm/java-8-openjdk"
This was not suppose to be pushed to master as it causes issues for
some scripts.

This reverts commit 8a400251b7.
2022-06-23 20:35:46 +02:00
Henrik Grimler 8a400251b7
scripts/properties.sh: allow for jdk in /usr/lib/jvm/java-8-openjdk 2022-06-23 20:29:42 +02:00
Henrik Grimler 5be1ac63f0
ci(setup-android-sdk.sh): update to ndk r23c 2022-06-23 20:29:28 +02:00
Henrik Grimler 2c397ea894
scripts(buildorder.py): make it possible to ./build-all.sh again
Seems this broke when termux-root-packages and x11-packages was merged
with termux-packages.
2022-06-18 21:50:23 +02:00
Henrik Grimler 0c4f47e713
Revert "revertme,ci(aptly_api): hardcode proxy-ip to use for deb uploads"
More proper fix by @agnostic-apollo in a3e68e2b89 and 3b76d37dce.

This reverts commit 1615ccc894.
2022-06-18 19:08:38 +02:00
agnostic-apollo 3b76d37dce enhance(scripts): Add support for CURL_ADDITIONAL_OPTIONS in aptly_api functions 2022-06-18 17:39:12 +05:00
Henrik Grimler 1615ccc894
revertme,ci(aptly_api): hardcode proxy-ip to use for deb uploads
Some of the IPs of fosshost's proxy do not work (see
termux/termux-packages#11007), so stick to using one that we know work
until that is fixed.

Suggested by agnostic-apollo.
2022-06-18 11:24:55 +02:00
Butta b8bfe98f10 upgpkg(swift): 5.6.1 to 5.6.2
Also, add a termux_setup_swift() bash function and move downloading the prebuilt
Swift toolchain for linux there.
2022-06-16 21:31:13 +05:30
tjhexf 302bb99f06 golang: update to 1.18.3 2022-06-07 19:04:25 +05:30
Aditya Alok 3568da318c
scripts(build/termux_setup_meson): patch meson libintl check
- patch meson to always return true for libintl check

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-29 11:54:07 +05:30
Yaksh Bariya 009d9a9e98
fixup(termux_setup_cmake): update CMake version
See 2f60dadf60 where checksum was updated
but version wasn't
2022-05-29 10:36:51 +05:30
Yaksh Bariya 2f60dadf60
upgpkg(main/cmake): update to v3.23.2 2022-05-29 10:27:59 +05:30
agnostic-apollo afad8febe6 added(scripts): Add TERMUX_APPS_DIR as per termux/termux-app@bcd8f4c4 2022-05-29 09:03:31 +05: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
Chongyun Lee 4a556e6d30
setup-termux.sh: Install package jq and binutils-is-llvm
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>

Closes #10721
2022-05-19 11:30:08 +05:30
Tee KOBAYASHI e91b7fa888 termux-services: Make `log/run` a regular file
so that it is populated properly before installing termux-services.
2022-05-16 08:13:54 +09:00
Tee KOBAYASHI daa043f4b8 mesa: Update to 22.0.3 2022-05-13 22:47:46 +09:00
Tee KOBAYASHI 15fe94ce97 golang: Update to 1.18.2 2022-05-11 19:36:24 +05:30
Tee KOBAYASHI 24a037a33a new package: news-flash-gtk 2022-05-10 10:20:13 +09:00
Aditya Alok d0fd4b0baf
refactor: update @MrAdityaAlok email address
- use alok@termux.org instead

%ci:no-build

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-10 00:15:34 +05:30
Aditya Alok 50411f24a9
feat(auto update): update packages in there build order
Currently, we assume that a package is not coupled with any specific
version of it's dependencies. Therefore, we update them individually
without any specific order. But this assumtion fails for package
families like lxqt which requires all it's family members to be of
specific version.

Although we would have to manually update dependencies in such
situation (if they can not be auto-updated), but we can atleast
decide order of updation for packages that can be auto-updated.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-05-07 21:23:32 +05:30
Yaksh Bariya ca4ed956a4
upgpkg(gn): update to 20220502 2022-05-05 17:35:31 +05:30
Tee KOBAYASHI 31aa2d2056 new package: gimp 2022-05-03 07:06:00 +09:00
Aditya Alok a32429090d
fix(check-auto-update): do not exit if a pkg cannot be auto-updated
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 15:10:51 +05:30
Aditya Alok a43f6b8eba
feat(scripts/check-auto-update): improve script, minor clean up
- add checks for 'newest-tag' as fallback, if 'latest-release-tag' is not found
- adhere to DRY principle

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 03:34:19 +05:30