summaryrefslogtreecommitdiffstats
path: root/snap/snapcraft.yaml
blob: c80f7fdc25f13a18186664524756f839738323b8 (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
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
name: btop
adopt-info: btop
summary: Resource monitor that shows usage and stats
description: |
  Resource monitor that shows usage and stats for processor, memory, disks, network and processes.
  C++ version and continuation of bashtop and bpytop.

license: Apache-2.0

assumes:
  - command-chain

base: core20
grade: stable
confinement: strict
compression: lzo

architectures:
  - build-on: amd64
  - build-on: arm64
  - build-on: armhf
  - build-on: ppc64el
  - build-on: s390x

package-repositories:
 - type: apt
   ppa: ubuntu-toolchain-r/test
   
apps:
  btop:
    command: usr/local/bin/btop
    command-chain: 
      - bin/homeishome-launch   
    environment:
      LC_ALL: C.UTF-8
      LANG: C.UTF-8      
    plugs: 
      - mount-observe
      - process-control
      - system-observe
      - hardware-observe
      - network
      - network-observe
      - physical-memory-observe
      - home
      
parts:
  btop: 
    source: https://github.com/aristocratos/btop
    source-type: git
    plugin: make
    make-parameters:
      - PREFIX=/usr/local
      - STATIC=true
#    build-packages:
#      - coreutils 
#      - sed 
#      - git 
#      - build-essential 
#      - gcc-11 
#      - g++-11
    
    stage-packages:
      - coreutils 
      - sed 
      - git 
      - build-essential 
      - gcc-11 
      - g++-11    
    
    override-pull: |
      snapcraftctl pull
      snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"
      
  homeishome-launch:
    plugin: nil
    stage-snaps:
      - homeishome-launch