summaryrefslogtreecommitdiffstats
path: root/utils/rlwrap/Makefile
blob: a437b80f340bfb56d5aa7c7d86ab230c86f4bcec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: GPL-2.0-only

include $(TOPDIR)/rules.mk

PKG_NAME:=rlwrap
PKG_VERSION:=0.48
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/hanslub42/rlwrap/releases/download/v$(PKG_VERSION)/
PKG_HASH:=cdf69074a216a8284574dddd145dd046c904ad5330a616e0eed53c9043f2ecbc

PKG_MAINTAINER:=Jeronimo Pellegrini <j_p@aleph0.info>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

include $(INCLUDE_DIR)/package.mk

define Package/rlwrap
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=rlwrap
  URL:=https://github.com/hanslub42/rlwrap
  DEPENDS:= +libreadline +libncursesw
endef

define Package/rlwrap/description
  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
endef

CONFIGURE_ARGS += --without-libptytty

define Package/rlwrap/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rlwrap $(1)/usr/bin
endef

$(eval $(call BuildPackage,rlwrap))