Skip to content

Commit ede447a

Browse files
rlwrap: add package
rlwrap is a 'readline wrapper', a small utility that uses the GNU Readline library to allow the editing of keyboard input for any command. The input history is preserved even across different invocations, history search and completion are supported Co-authored-by: George Sapkin <[email protected]> Signed-off-by: Jeronimo Pellegrini <[email protected]>
1 parent 7917119 commit ede447a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

utils/rlwrap/Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
include $(TOPDIR)/rules.mk
4+
5+
PKG_NAME:=rlwrap
6+
PKG_VERSION:=0.48
7+
PKG_RELEASE:=1
8+
9+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10+
PKG_SOURCE_URL:=https://github.com/hanslub42/rlwrap/releases/download/v$(PKG_VERSION)/
11+
PKG_HASH:=cdf69074a216a8284574dddd145dd046c904ad5330a616e0eed53c9043f2ecbc
12+
13+
PKG_MAINTAINER:=Jeronimo Pellegrini <[email protected]>
14+
PKG_LICENSE:=GPL-2.0-only
15+
PKG_LICENSE_FILES:=COPYING
16+
17+
include $(INCLUDE_DIR)/package.mk
18+
19+
define Package/rlwrap
20+
SECTION:=utils
21+
CATEGORY:=Utilities
22+
TITLE:=rlwrap
23+
URL:=https://github.com/hanslub42/rlwrap
24+
DEPENDS:= +libreadline +libncursesw
25+
endef
26+
27+
define Package/rlwrap/description
28+
rlwrap is a 'readline wrapper', a small utility that uses the GNU Readline library
29+
to allow the editing of keyboard input for any command.
30+
The input history is preserved even across different invocations, history search
31+
and completion are supported
32+
endef
33+
34+
CONFIGURE_ARGS += --without-libptytty
35+
36+
define Package/rlwrap/install
37+
$(INSTALL_DIR) $(1)/usr/bin
38+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rlwrap $(1)/usr/bin
39+
endef
40+
41+
$(eval $(call BuildPackage,rlwrap))

utils/rlwrap/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
rlwrap -v 2>&1 | grep "$2"
4+

0 commit comments

Comments
 (0)