diff --git a/packages/lesspipe/build.sh b/packages/lesspipe/build.sh index cd2218e63..2e56b4e81 100644 --- a/packages/lesspipe/build.sh +++ b/packages/lesspipe/build.sh @@ -3,11 +3,13 @@ TERMUX_PKG_DESCRIPTION="An input filter for the pager less" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=2.04 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/wofr06/lesspipe/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=b65ee79b7b51510e6f2097a22d3c7985805a53d9e33b0afdfe129f2a1f89cc23 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="less" TERMUX_PKG_SUGGESTS="imagemagick, p7zip, unrar, unzip" +TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_BUILD_IN_SRC=true termux_step_configure() { diff --git a/packages/lesspipe/lesspipe.sh.patch b/packages/lesspipe/lesspipe.sh.patch new file mode 100644 index 000000000..457878640 --- /dev/null +++ b/packages/lesspipe/lesspipe.sh.patch @@ -0,0 +1,11 @@ +--- a/lesspipe.sh ++++ b/lesspipe.sh +@@ -719,7 +719,7 @@ + setopt sh_word_split 2>/dev/null + PATH=$PATH:${0%%/lesspipe.sh} + # the current locale in lowercase (or generic utf-8) +-locale=$(locale|grep LC_CTYPE|sed 's/.*"\(.*\)"/\1/') || locale=en_US.UTF-8 ++locale=en_US.UTF-8 + lclocale=$(echo ${locale##*.}|tr '[A-Z]' '[a-z]') + + sep=: # file name separator