0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-21 16:19:36 +00:00
Files
termux-packages/packages/lesspipe/build.sh
2025-03-11 15:32:52 +02:00

27 lines
992 B
Bash

TERMUX_PKG_HOMEPAGE=http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html
TERMUX_PKG_DESCRIPTION="An input filter for the pager less"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION="2.18"
TERMUX_PKG_SRCURL=https://github.com/wofr06/lesspipe/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a78c5c2841771adb5cdc7eb918ca8e4865be88cb9f7a53622ca3fa064d5ec5bc
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="less"
TERMUX_PKG_BUILD_DEPENDS="bash-completion"
TERMUX_PKG_SUGGESTS="imagemagick, p7zip, unrar, unzip"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
./configure \
--prefix="$TERMUX_PREFIX" \
--all-completions
}
termux_step_post_make_install() {
mkdir -p "$TERMUX_PREFIX"/etc/profile.d
echo "export LESSOPEN='|$TERMUX_PREFIX/bin/lesspipe.sh %s'" \
> "$TERMUX_PREFIX"/etc/profile.d/lesspipe.sh
ln -sf "$TERMUX_PREFIX/bin/lesspipe.sh" "$TERMUX_PREFIX/bin/lesspipe"
}