From e50310ec4fde1adecdc145fbc9dbe1d195dd67dc Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 4 Jan 2020 16:10:34 +0200 Subject: [PATCH] move lesspipe from unstable repo --- packages/lesspipe/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/lesspipe/build.sh diff --git a/packages/lesspipe/build.sh b/packages/lesspipe/build.sh new file mode 100644 index 000000000..c6df36c1a --- /dev/null +++ b/packages/lesspipe/build.sh @@ -0,0 +1,23 @@ +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="Leonid Plyushch " +TERMUX_PKG_VERSION=1.83 +TERMUX_PKG_REVISION=6 +TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/lesspipe/lesspipe/$TERMUX_PKG_VERSION/lesspipe-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=d616f0d51852e60fb0d0801eec9c31b10e0acc6fdfdc62ec46ef7bfd60ce675e +TERMUX_PKG_DEPENDS="less" +TERMUX_PKG_SUGGESTS="imagemagick, p7zip, unrar, unzip" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_configure() { + ./configure \ + --prefix="$TERMUX_PREFIX" \ + --yes +} + +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 +}