From ed15ee0820680119238017153c27d99b1182c467 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 10 Aug 2019 18:01:57 +0300 Subject: [PATCH] update sample script for new package --- docs/sample/build.sh | 52 --------------------------------- docs/sample/subpackage.sh | 12 -------- sample/build.sh | 12 ++++++++ sample/sample-sub.subpackage.sh | 8 +++++ 4 files changed, 20 insertions(+), 64 deletions(-) delete mode 100644 docs/sample/build.sh delete mode 100644 docs/sample/subpackage.sh create mode 100644 sample/build.sh create mode 100644 sample/sample-sub.subpackage.sh diff --git a/docs/sample/build.sh b/docs/sample/build.sh deleted file mode 100644 index b1249c23b3..0000000000 --- a/docs/sample/build.sh +++ /dev/null @@ -1,52 +0,0 @@ -# Sample build.sh for all packages. -# All comments here to be removed before submitting pull requests. -# Unless otherwise specified, variables are optional. -# Default values of all variables are found in build-package.sh - -# IMPORTANT: build.sh script should not execute commands that -# require superuser (su/sudo) privileges or modify files outside -# of build directories. - -# Core information about package. -TERMUX_PKG_HOMEPAGE= # REQUIRED. The homepage of a package. -TERMUX_PKG_DESCRIPTION= # REQUIRED. A brief description of the package. Should not be long and/or multiline. -TERMUX_PKG_LICENSE= # REQUIRED. The license of the package. -TERMUX_PKG_MAINTAINER= # Usually kept as Fredrik Fornwall. -TERMUX_PKG_API_LEVEL= # Minimal required Android API Level to run this package. -TERMUX_PKG_VERSION= # Version of package by original developer. -TERMUX_PKG_REVISION= # Bump after a fix within Termux. -TERMUX_PKG_SRCURL= # The URL of source archive. -TERMUX_PKG_SHA256= # REQUIRED if URL is specified. Prevents unauthorised changes during download. -TERMUX_PKG_SKIP_SRC_EXTRACT= # Set if no need to extract downloaded sources. -TERMUX_PKG_DEPENDS= # Runtime dependencies. -TERMUX_PKG_DEVPACKAGE_DEPENDS= # Header files dependencies. -TERMUX_PKG_BUILD_DEPENDS= # Build-time dependencies. - -# Package relationships. -TERMUX_PKG_BREAKS= # Packages that the package will break. -TERMUX_PKG_CONFLICTS= # Conflicted packages. All users with conflicted packages installed will not be able to install this package. -TERMUX_PKG_REPLACES= # Packages that are not required anymore with this package. -TERMUX_PKG_PROVIDES= # Specifies virtual packages. Used primarily by secondary Termux repositories. -TERMUX_PKG_RECOMMENDS= # Packages that are recommended to be installed in addition. -TERMUX_PKG_SUGGESTS= # Packages that may be installed in addition. -TERMUX_PKG_ESSENTIAL= # Marks package as essential. User will not be able to freely uninstall it so potential system breakage will be prevented. - -# Build configuration. -TERMUX_PKG_BUILD_IN_SRC= # Whether builds are done in source. -TERMUX_PKG_NO_DEVELSPLIT= # Prevent splitting into dev package. -TERMUX_PKG_HAS_DEBUG= # Whether debug builds are possible. -TERMUX_PKG_PLATFORM_INDEPENDENT= # Whether package is cross-platform (e.g. shell, java or python). -TERMUX_PKG_BLACKLISTED_ARCHES= # CPU architectures where the package could not be built. -TERMUX_PKG_HOSTBUILD= # Whether host builds are done (default:no). -TERMUX_PKG_FORCE_CMAKE= # Force using CMake even if configure or other GNU Automake files are present. -TERMUX_PKG_EXTRA_CONFIGURE_ARGS= # Extra arguments passed to configuration utility. -TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS= # Extra arguments passed to configuration utility during the host build. -TERMUX_PKG_EXTRA_MAKE_ARGS= # Extra arguments for make. -TERMUX_PKG_MAKE_INSTALL_TARGET= # Installation target equivalent to make install. - -# Post-install steps configuration. -TERMUX_PKG_INCLUDE_IN_DEVPACKAGE= # Files that are included in development package in addition to headers. -TERMUX_PKG_KEEP_STATIC_LIBRARIES= # Whether static libraries are kept. -TERMUX_PKG_KEEP_SHARE_DOC= # Whether share/doc files are kept. -TERMUX_PKG_RM_AFTER_INSTALL= # Remove specified files after 'make install' or equivalent. -TERMUX_PKG_CONFFILES= # Package configuration files. These files will not be overwritten on package update if modified by user. diff --git a/docs/sample/subpackage.sh b/docs/sample/subpackage.sh deleted file mode 100644 index 7cf5a36a5b..0000000000 --- a/docs/sample/subpackage.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Sample subpackage.sh -# All comments here to be removed before submitting pull requests. -# Unless otherwise specified, variables are optional. -# Default values of all variables are found in build-package.sh - -TERMUX_SUBPKG_DESCRIPTION= # REQUIRED. Subpackage description. -TERMUX_SUBPKG_DEPENDS= # Subpackage dependencies. -TERMUX_SUBPKG_CONFLICTS= # Conflicted subpackages. -TERMUX_SUBPKG_REPLACES= # Replaced packages. -TERMUX_SUBPKG_PLATFORM_INDEPENDENT= # Whether subpackage is cross-platform. -TERMUX_SUBPKG_INCLUDE= # REQUIRED. Files to be included in subpackage. -TERMUX_SUBPKG_CONFFILES= # Subpackage configuration files. diff --git a/sample/build.sh b/sample/build.sh new file mode 100644 index 0000000000..9ed1dee0ce --- /dev/null +++ b/sample/build.sh @@ -0,0 +1,12 @@ +# Skeleton build.sh script for new package. +# For reference about available fields, check the Termux Developer's Wiki page: +# https://github.com/termux/termux-packages/wiki/Creating-new-package + +TERMUX_PKG_HOMEPAGE= +TERMUX_PKG_DESCRIPTION="" +TERMUX_PKG_LICENSE="" +TERMUX_PKG_VERSION= +TERMUX_PKG_SRCURL= +TERMUX_PKG_SHA256= +#TERMUX_PKG_DEPENDS="" +#TERMUX_PKG_BUILD_IN_SRC=true diff --git a/sample/sample-sub.subpackage.sh b/sample/sample-sub.subpackage.sh new file mode 100644 index 0000000000..11395dffaa --- /dev/null +++ b/sample/sample-sub.subpackage.sh @@ -0,0 +1,8 @@ +# Skeleton *.subpackage.sh script for new package. +# Delete this file if package shouldn't be splitted, otherwise rename and fill +# necessary fields. +# More information available on the Termux Developer's Wiki page: +# https://github.com/termux/termux-packages/wiki/Creating-new-package#writing-a-subpackage-script + +TERMUX_SUBPKG_DESCRIPTION="" +TERMUX_SUBPKG_INCLUDE=""