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
21 lines
702 B
Bash
21 lines
702 B
Bash
TERMUX_PKG_HOMEPAGE=https://facebook.github.io/PathPicker/
|
|
TERMUX_PKG_DESCRIPTION="Facebook PathPicker - a terminal-based file picker"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_VERSION=0.8.2
|
|
TERMUX_PKG_SRCURL=https://github.com/facebook/PathPicker/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=7d1beb76f9864c1f13a25fe382e3467684999068bfcbb99053eb4bc322d6a80c
|
|
TERMUX_PKG_DEPENDS="bash,python"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
termux_step_make_install() {
|
|
_PKG_DIR=$TERMUX_PREFIX/share/pathpicker
|
|
rm -Rf $_PKG_DIR
|
|
mkdir -p $_PKG_DIR
|
|
cp -Rf src/ $_PKG_DIR
|
|
cp fpp $_PKG_DIR/fpp
|
|
cd $TERMUX_PREFIX/bin
|
|
ln -f -s ../share/pathpicker/fpp fpp
|
|
chmod +x fpp
|
|
}
|