kitty-terminfo: Terminfo for kitty, an OpenGL-based terminal emulator
authorJitao Lu <dianlujitao@gmail.com>
Fri, 8 Apr 2022 02:35:03 +0000 (10:35 +0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 15 Apr 2022 01:58:57 +0000 (18:58 -0700)
Signed-off-by: Jitao Lu <dianlujitao@gmail.com>
utils/kitty-terminfo/Makefile [new file with mode: 0644]

diff --git a/utils/kitty-terminfo/Makefile b/utils/kitty-terminfo/Makefile
new file mode 100644 (file)
index 0000000..91bc3a4
--- /dev/null
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2022 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=kitty-terminfo
+PKG_VERSION:=0.24.4
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_LICENSE:=GPL-3.0-or-later
+
+PKG_SOURCE:=kitty-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/kovidgoyal/kitty/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=e6619b635b5c9d6cebbba631a2175659698068ce1cd946732dc440b0f1c12ab3
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/kitty-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/kitty-terminfo
+  SECTION:=utils
+  CATEGORY:=Utilities
+  SUBMENU:=Terminal
+  TITLE:=Terminfo for kitty, an OpenGL-based terminal emulator
+  DEPENDS:=+libncurses
+  URL:=https://sw.kovidgoyal.net/kitty/
+  PKGARCH:=all
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/kitty-terminfo/install
+       $(INSTALL_DIR) $(1)/usr/share/terminfo
+       tic -x -o $(1)/usr/share/terminfo $(PKG_BUILD_DIR)/terminfo/kitty.terminfo
+endef
+
+$(eval $(call BuildPackage,kitty-terminfo))