Commit Graph

7 Commits

Author SHA1 Message Date
Leonid Pliushch 6bc5ce5bf5 linter: add PHP-3.01 license id (https://spdx.org/licenses/) 2021-05-05 11:00:48 +02:00
Leonid Pliushch 8ac3d03bf7
linter: check build.sh for presence of 'TERMUX_PKG_MAINTAINER' field 2021-01-22 13:41:52 +02:00
Henrik Grimler ca34d7345d lint-packages: allow TERMUX_PKG_SHA256 to be empty sometimes
If TERMUX_PKG_SRCURL is git repo (url ends with .git) then no hashsum
needs to be given.
2020-07-21 10:14:19 +02:00
Henrik Grimler ab2a3b70f0 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).
2020-01-05 15:00:15 +01:00
Leonid Pliushch ce0a30d684 linter: source ./scripts/properties.sh only if it exists 2019-08-14 15:13:39 +03:00
Leonid Pliushch a4b1f952c1 linter: specify that non-https links are still acceptable
%ci:no-build
2019-08-14 14:59:47 +03:00
Leonid Pliushch 8701462951 add new linter script & fix packages where needed
Linter will check packages submitted for CI build. If error was found,
build will not be allowed.

To ensure that all build.sh scripts are consistent and have at least
minimal allowed quality, linter is permanently enabled for all branches
and pull requests.
2019-08-14 14:27:55 +03:00