Leonid Plyushch
829478bfe6
build-package.sh: fix unbound variable error
5 years ago
Leonid Plyushch
c6e412b51b
build-package.sh: attempt to fix gpg when no tty available
5 years ago
Leonid Plyushch
bb8a2d2728
build-package.sh: verify release files with gpg when doing autobuilds ( #5062 )
5 years ago
Henrik Grimler
8ba8600bad
build-package: add new function termux_step_create_subpkg_debscripts ( #4963 )
Makes it possible to create postinst scripts and similar or subpackages as well
5 years ago
Henrik Grimler
f88f74cc22
build-package.sh: add TERMUX_PKG_SERVICE_SCRIPT var and build script
termux_step_install_service_scripts is run after
termux_step_post_make_install and loops over the new array
TERMUX_PKG_SERVICE_SCRIPT to add service scripts for termux-services.
The service scripts are usually only a one-liner so we might just as
well define it in a variable like TERMUX_PKG_SERVICE_SCRIPT.
TERMUX_PKG_SERVICE_SCRIPT should be an array on the format
("daemon-name" 'script to execute' "another daemon" 'multi\n line\n script'),
i.e. it should be of even length with name + script where the script
part preferably is within single quotes (to avoid accidental expansion
of for example $HOME).
5 years ago
Leonid Plyushch
147d317e26
build-package.sh: use absolute paths when sourcing parts from scripts/build/
+ some fixes for shellcheck.
5 years ago
Leonid Plyushch
dcee9ce9d9
build-package.sh: allow script to be called from any directory
5 years ago
Leonid Plyushch
91657e90bb
build-package.sh: more fixes
5 years ago
Leonid Plyushch
6267a318aa
build-package.sh: use text-based comparsion in conditionals instead of exit-code based
5 years ago
Leonid Plyushch
d111f5bf74
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
5 years ago
Leonid Plyushch
88cc360984
build-package.sh: for on-device builds value of TERMUX_ARCH should not be overridable
This should be allowed only when cross-compiling.
5 years ago
Leonid Plyushch
25955f9df5
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.
5 years ago
Leonid Plyushch
0d2f6e446f
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.
5 years ago
Leonid Plyushch
9d743e2a27
build-package.sh: allow to build multiple packages at one time
Support for call syntax:
./build-package.sh pkg1 pkg2 pkg3 ...
6 years ago
Henrik Grimler
b6effe8f21
build-package: termux_step_license->termux_step_instalL_license
6 years ago
Henrik Grimler
4f64a2ae59
build-package: install licenses to $PREFIX/share/$PKG/LICENSE
6 years ago
Fredrik Fornwall
4e57f3540c
protobuf: Update from 3.6.1 to 3.7.1
6 years ago
Leonid Plyushch
a72bd14335
build-package.sh: make sure that termux_error_exit() is defined before throwing any errors
6 years ago
Leonid Plyushch
0c4fbc364e
build-package.sh: fix printing of error message when trying to run script on Android device
6 years ago
Henrik Grimler
9dece59651
build-package: mv code for creating subpackages to new file
6 years ago
Leonid Plyushch
28f3fbe1bc
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.
6 years ago
Leonid Plyushch
aa3bca1c11
build-package.sh: fix sourcing of renamed script
6 years ago
Henrik Grimler
a1601b739b
build-package: call termux_get_repo_files in termux_step start_build
Prevents unnecessary re-downloads of repo files.
6 years ago
Henrik Grimler
5873ff8750
build-package: remove termux_step_compare_debs
6 years ago
Henrik Grimler
849bfda557
build-package.sh: add short descriptions for package hooks
6 years ago
Henrik Grimler
537071c99f
build-package: mv termux_step_finish_build to scripts/build/
6 years ago
Henrik Grimler
95ee844cfe
build-package: mv termux_step_compare_debs to scripts/build/
6 years ago
Henrik Grimler
07ac40da1e
build-package: mv termux_step_create_debfile to scripts/build/
6 years ago
Henrik Grimler
1791646f58
build-package: mv termux_step_create_datatar to scripts/build/
6 years ago
Henrik Grimler
eaf8f81973
build-package: mv termux_step_massage to scripts/build/
6 years ago
Henrik Grimler
267962c93b
build-package: mv termux_step_extract_into_massagedir to scripts/build/
6 years ago
Henrik Grimler
70afa65d4d
build-package: mv termux_step_make_install to scripts/build/
6 years ago
Henrik Grimler
00d6e0c282
build-package: mv termux_step_make to scripts/build/
6 years ago
Henrik Grimler
92688d5464
build-package: mv termux_step_configure to scripts/build/configure/
6 years ago
Henrik Grimler
a0fff6763b
build-package: mv termux_step_configure_meson to scripts/build/configure/
6 years ago
Henrik Grimler
b4ed937099
build-package: mv termux_step_configure_cmake to scripts/build/configure/
6 years ago
Henrik Grimler
fed060b5b7
build-package: mv termux_step_configure_autotools to scripts/build/configure/
6 years ago
Henrik Grimler
8e759381d2
build-package: mv termux_step_replace_guess_scripts to scripts/build
6 years ago
Henrik Grimler
f445a43da1
build-package: mv termux_step_patch_package to scripts/build/
6 years ago
Henrik Grimler
e6097e6cf6
build-package: mv termux_step_setup_toolchain to scripts/build/
6 years ago
Henrik Grimler
6f2c26696f
build-package: mv termux_step_extract_package to scripts/build/
6 years ago
Henrik Grimler
fd61b679dd
build-package: mv termux_step_start_build to scripts/build/
6 years ago
Henrik Grimler
07f4d72b3c
build-package: mv termux_step_get_repo_files to scripts/build/
6 years ago
Henrik Grimler
6986e817fb
build-package: mv termux_download_deb to scripts/build/
6 years ago
Henrik Grimler
2b415feba0
build-package: mv termux_extract_dep_info to scripts/build/
6 years ago
Henrik Grimler
ecb71352b4
build-package: mv termux_step_handle_buildarch to scripts/build/
6 years ago
Henrik Grimler
bea56b4b8b
build-package: mv termux_setup_variables to scripts/build/
6 years ago
Henrik Grimler
5a6f9fdb91
build-package: mv termux_step_handle_arguments to scripts/build/
6 years ago
Henrik Grimler
d280fd8827
build-package: mv termux_setup_cmake to scripts/build/setup
6 years ago
Henrik Grimler
9571b1c49a
build-package: mv termux_setup_meson to scripts/build/setup
6 years ago