Leonid Pliushch
85462a0042
build-package.sh: use absolute paths when sourcing parts from scripts/build/
...
+ some fixes for shellcheck.
2019-08-16 23:19:11 +03:00
Leonid Pliushch
18af9577f4
build-package.sh: allow script to be called from any directory
2019-08-16 22:52:18 +03:00
Leonid Pliushch
52ceb56d3f
build-package.sh: more fixes
2019-08-13 02:03:52 +03:00
Leonid Pliushch
d08dc0fa13
build-package.sh: use text-based comparsion in conditionals instead of exit-code based
2019-08-13 02:03:47 +03:00
Leonid Pliushch
c352216c63
packages: standardize values of several control variables for build.sh
...
Variables
TERMUX_PKG_PLATFORM_INDEPENDENT
TERMUX_DEBUG
TERMUX_PKG_HAS_DEBUG
TERMUX_PKG_ESSENTIAL
TERMUX_SUBPKG_ESSENTIAL
TERMUX_PKG_NO_STATICSPLIT
TERMUX_PKG_BUILD_IN_SRC
TERMUX_PKG_FORCE_CMAKE
TERMUX_PKG_HOSTBUILD
should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.
build-package.sh should make decision based on variable's value but not on
whether it is set or empty.
%ci:no-build
2019-08-12 18:49:13 +03:00
Leonid Pliushch
56ca0f1d06
build-package.sh: for on-device builds value of TERMUX_ARCH should not be overridable
...
This should be allowed only when cross-compiling.
2019-08-10 01:13:25 +03:00
Leonid Pliushch
ba62c10575
build-package.sh: source properties.sh before handling command line arguments
...
Fixes problem when it is not possible to override TERMUX_ARCH set in ~/.termuxrc.
2019-08-10 01:04:46 +03:00
Leonid Pliushch
e303212ae5
enable on-device builds
...
Partial compatibility for on-device builds.
There is no guarantee that it will be possible to build all available
packages and built packages will have same reliability that cross-compiled
but should solve "self-hosting" problems as much as possible.
2019-08-08 16:58:34 +03:00
Leonid Pliushch
4aaba4d074
build-package.sh: allow to build multiple packages at one time
...
Support for call syntax:
./build-package.sh pkg1 pkg2 pkg3 ...
2019-07-20 15:32:54 +03:00
Henrik Grimler
9e4715ee82
build-package: termux_step_license->termux_step_instalL_license
2019-05-19 21:36:30 +03:00
Henrik Grimler
117ecbfb88
build-package: install licenses to $PREFIX/share/$PKG/LICENSE
2019-05-19 21:36:30 +03:00
Fredrik Fornwall
503c204164
protobuf: Update from 3.6.1 to 3.7.1
2019-05-12 00:22:25 +02:00
Leonid Pliushch
918a383d4d
build-package.sh: make sure that termux_error_exit() is defined before throwing any errors
2019-04-20 17:28:39 +03:00
Leonid Pliushch
5ec5a1a314
build-package.sh: fix printing of error message when trying to run script on Android device
2019-03-26 01:27:09 +02:00
Henrik Grimler
d30227669f
build-package: mv code for creating subpackages to new file
2019-03-07 20:35:32 +01:00
Leonid Pliushch
44d28f9f88
build-package.sh: prevent parallel runs in the same environment
...
Avoid corruption of the build environment if build-package.sh was
executed in 2 parallel sessions.
2019-03-06 17:01:19 +02:00
Leonid Pliushch
3d5d3958a0
build-package.sh: fix sourcing of renamed script
2019-03-03 13:32:22 +02:00
Henrik Grimler
531956ce02
build-package: call termux_get_repo_files in termux_step start_build
...
Prevents unnecessary re-downloads of repo files.
2019-03-03 13:27:47 +02:00
Henrik Grimler
379f2452f3
build-package: remove termux_step_compare_debs
2019-03-03 01:40:22 +02:00
Henrik Grimler
414820e2d3
build-package.sh: add short descriptions for package hooks
2019-02-27 21:59:08 +02:00
Henrik Grimler
67d79e8b92
build-package: mv termux_step_finish_build to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
90138a3a69
build-package: mv termux_step_compare_debs to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
8be8c3a2d6
build-package: mv termux_step_create_debfile to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
586e8709fd
build-package: mv termux_step_create_datatar to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
a30a61d417
build-package: mv termux_step_massage to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
9f5ba4bcc6
build-package: mv termux_step_extract_into_massagedir to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
617764f4f4
build-package: mv termux_step_make_install to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
d0db5e647b
build-package: mv termux_step_make to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
46f4e306fd
build-package: mv termux_step_configure to scripts/build/configure/
2019-02-27 21:59:08 +02:00
Henrik Grimler
9e04fe1434
build-package: mv termux_step_configure_meson to scripts/build/configure/
2019-02-27 21:59:08 +02:00
Henrik Grimler
74f09e886b
build-package: mv termux_step_configure_cmake to scripts/build/configure/
2019-02-27 21:59:08 +02:00
Henrik Grimler
0bb1da3146
build-package: mv termux_step_configure_autotools to scripts/build/configure/
2019-02-27 21:59:08 +02:00
Henrik Grimler
38d3f22377
build-package: mv termux_step_replace_guess_scripts to scripts/build
2019-02-27 21:59:08 +02:00
Henrik Grimler
5389a1a4e2
build-package: mv termux_step_patch_package to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
63fdeada9b
build-package: mv termux_step_setup_toolchain to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
3e088d12f7
build-package: mv termux_step_extract_package to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
0b9109238a
build-package: mv termux_step_start_build to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
68166e9b62
build-package: mv termux_step_get_repo_files to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
7ca66e6589
build-package: mv termux_download_deb to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
3e70f419a1
build-package: mv termux_extract_dep_info to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
8ae7c5ef86
build-package: mv termux_step_handle_buildarch to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
063eaac334
build-package: mv termux_setup_variables to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
7eab83459f
build-package: mv termux_step_handle_arguments to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
55e037366d
build-package: mv termux_setup_cmake to scripts/build/setup
2019-02-27 21:59:08 +02:00
Henrik Grimler
4df44858f6
build-package: mv termux_setup_meson to scripts/build/setup
2019-02-27 21:59:08 +02:00
Henrik Grimler
6888baf268
build-package: mv termux_setup_ninja to scripts/build/setup
2019-02-27 21:59:08 +02:00
Henrik Grimler
2bd607112b
build-package: mv termux_setup_rust to scripts/build/setup
2019-02-27 21:59:08 +02:00
Henrik Grimler
7eb7ad6617
build-package: mv termux_setup_golang to scripts/build/setup
2019-02-27 21:59:08 +02:00
Henrik Grimler
a927332bd9
build-package: mv termux_download to scripts/build/
2019-02-27 21:59:08 +02:00
Henrik Grimler
f36687b8e7
build-package: mv termux_step_host_build to scripts/build/
2019-02-27 21:59:08 +02:00