Skip to content

Commit f3d750b

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 f3d750b

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

utils/rlwrap/Makefile

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