c352216c63
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
16 lines
647 B
Bash
16 lines
647 B
Bash
TERMUX_PKG_HOMEPAGE=https://yarnpkg.com/
|
|
TERMUX_PKG_DESCRIPTION="Fast, reliable, and secure dependency management"
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
|
TERMUX_PKG_MAINTAINER="Pierre Rudloff @Rudloff"
|
|
TERMUX_PKG_VERSION=1.17.3
|
|
TERMUX_PKG_SRCURL=https://yarnpkg.com/downloads/${TERMUX_PKG_VERSION}/yarn-v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=e3835194409f1b3afa1c62ca82f561f1c29d26580c9e220c36866317e043c6f3
|
|
TERMUX_PKG_DEPENDS="nodejs | nodejs-lts"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
termux_step_make_install() {
|
|
cp -r . ${TERMUX_PREFIX}/share/yarn/
|
|
ln -f -s ../share/yarn/bin/yarn ${TERMUX_PREFIX}/bin/yarn
|
|
}
|