/
snapcraft.yaml
99 lines (91 loc) · 2.71 KB
/
snapcraft.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: htop
base: core22
adopt-info: htop
summary: Interactive processes viewer
description: |
htop is an ncurses-based process viewer similar to top, but it
allows one to scroll the list vertically and horizontally to see
all processes and their full command lines. Tasks related to
processes (killing, renicing) can be done without entering their PIDs.
Once installed, this snap can _optionally_ be connected to some extra plugs:
sudo snap connect htop:mount-observe
sudo snap connect htop:network-control # DELAYACCT support
Main website: https://htop.dev/
icon: htop.png
grade: devel
confinement: strict
license: GPL-2.0
compression: lzo
apps:
htop:
command-chain: [bin/locales-launch]
command: usr/local/bin/htop
desktop: usr/local/share/applications/htop.desktop
environment:
TERMINFO_DIRS: $SNAP/lib/terminfo:$SNAP/usr/share/terminfo
plugs:
network:
hardware-observe:
mount-observe:
network-control:
process-control:
system-observe:
parts:
htop:
plugin: autotools
source: https://github.com/htop-dev/htop
source-type: git
source-branch: main
autotools-configure-parameters:
- --enable-capabilities
- --enable-delayacct
- --enable-linux-affinity
- --enable-openvz
- --enable-sensors
- --enable-unicode
- --enable-vserver
override-build: |
craftctl set version=$(git describe --tags --long)
craftctl default
build-packages:
- libcap-dev
- libgcc-s1
- libncursesw5-dev
- libnl-3-dev
- libnl-genl-3-dev
- libsensors4-dev
- pkg-config
stage-packages:
- kitty-terminfo
- libcap2
- libncursesw5
- libsensors5
- libtinfo5
- libsystemd0
- ncurses-base
- ncurses-term
- lsof
- strace
# Stage snap for fixing the Glibc locales
# https://forum.snapcraft.io/t/the-locales-launch-stage-snap/10296
locales-launch:
source: https://github.com/Lin-Buo-Ren/locales-launch.git
source-tag: v1.0.0
plugin: dump
stage-packages:
# For localedef(1)
- libc-bin
# For locale data used by localedef(1)
- locales
# All pre-generated locale data
# DISABLED: Lots of duplicate data will be included in snap when this is staged, unless the target machine has no resource to generate them in runtime otherwise not using it
# Lack of compiled locales breaks gettext based localisation - snapcraft - snapcraft.io
# https://forum.snapcraft.io/t/lack-of-compiled-locales-breaks-gettext-based-localisation/3758
#- locales-all
stage:
- bin/locales-launch
- etc/locale.alias
- usr/bin/localedef
- usr/share/doc/locales
- usr/share/i18n
- usr/share/locale