btop/snap/snapcraft.yaml

80 lines
1.6 KiB
YAML
Raw Normal View History

2021-09-19 05:48:21 +12:00
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
2021-09-19 07:30:16 +12:00
package-repositories:
- type: apt
ppa: ubuntu-toolchain-r/test
2021-09-19 05:48:21 +12:00
apps:
btop:
2021-09-19 10:44:29 +12:00
command: usr/local/bin/btop
2021-09-19 05:48:21 +12:00
command-chain:
- bin/homeishome-launch
plugs:
- mount-observe
- process-control
- system-observe
- hardware-observe
- network
- physical-memory-observe
- home
parts:
btop:
source: https://github.com/aristocratos/btop
2021-09-19 07:19:50 +12:00
source-type: git
plugin: nil
2021-09-19 05:48:21 +12:00
build-packages:
- coreutils
- sed
- git
- build-essential
- gcc-11
- g++-11
stage-packages:
- coreutils
- sed
- git
- build-essential
- gcc-11
- g++-11
2021-09-19 05:48:21 +12:00
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/btop
cd $SNAPCRAFT_PART_INSTALL/btop
2021-09-24 08:10:03 +12:00
make install PREFIX=$SNAPCRAFT_PART_INSTALL/usr/local
make setuid
make clean
2021-09-19 05:48:21 +12:00
homeishome-launch:
plugin: nil
stage-snaps:
- homeishome-launch