41eeb9c18e47c7cbfb35a1b47ebccbfc68e34feb
[feed/packages.git] / utils / procs / Makefile
1 # SPDX-License-Identifier: GPL-3.0-only
2 #
3 # Copyright (C) 2023 Facundo Acevedo
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=procs
8 PKG_VERSION:=0.14.1
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=https://codeload.github.com/dalance/procs/tar.gz/v$(PKG_VERSION)?
13 PKG_HASH:=bb4f9d696081807ca105593092f8acd04ca339ae43fff29e0e820c6fc5e3f9ea
14
15 PKG_MAINTAINER:=Facundo Acevedo <facevedo@disroot.org>
16 PKG_LICENSE:=MIT
17 PKG_LICENSE_FILES:=LICENCE
18
19 PKG_BUILD_DEPENDS:=rust/host
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23 include ../../lang/rust/rust-package.mk
24
25 define Package/procs
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Procs is feature-rich alternative to the 'ps'
29 DEPENDS:=$(RUST_ARCH_DEPENDS)
30 URL:=https://github.com/dalance/procs/
31 endef
32
33 define Package/procs/description
34 Procs is a 'ps' command replacement written in Rust, offering
35 enhanced usability and information display.
36 Features include color-coded output, theme auto-detection, advanced
37 search, and extended process details
38 (TCP/UDP ports, Docker names, I/O throughput).
39 It also supports pager functionality, a 'top'-like watch mode, and
40 a process tree view​​.
41 endef
42
43 define Package/procs/conffiles
44 /etc/procs/procs.toml
45 endef
46
47 define Package/procs/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/procs $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/etc/procs
51 $(INSTALL_CONF) ./files/etc/procs/procs.toml $(1)/etc/procs/
52 endef
53
54 $(eval $(call RustBinPackage,procs))
55 $(eval $(call BuildPackage,procs))