Skip to content

Commit d2d0a91

Browse files
committed
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 Signed-off-by: Jeronimo Pellegrini <[email protected]>
1 parent 7917119 commit d2d0a91

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

utils/rlwrap/Makefile

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