aboutsummaryrefslogtreecommitdiff
path: root/snap/snapcraft.yaml
blob: e8b1c66ef85ad956b15c3da882a87ba0ba68a5ed (plain) (blame)
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
name: newsboat
version: git
base: core20
summary: An RSS/Atom feed reader for text terminals
description: |
  Newsboat is an RSS/Atom feed reader for the text console. It's an actively
  maintained fork of Newsbeuter.
grade: stable
confinement: strict

apps:
  newsboat:
    command: usr/local/bin/newsboat
    environment:
      LOCPATH: "$SNAP/usr/lib/locale"
      TERMINFO_DIRS: "$SNAP/lib/terminfo:$SNAP/usr/share/terminfo"
    plugs:
      - network
      - home
      - desktop
  podboat:
    command: usr/local/bin/podboat
    environment:
      LOCPATH: "$SNAP/usr/lib/locale"
      TERMINFO_DIRS: "$SNAP/lib/terminfo:$SNAP/usr/share/terminfo"
    plugs:
      - network
      - home
      - desktop

parts:
  rust:
    plugin: nil
    build-snaps:
      - rustup
    override-build: |
      rustup install stable
  newsboat:
    after:
      - rust
    plugin: make
    source: .
    build-packages:
      - pkg-config
      - libsqlite3-dev
      - libcurl4-openssl-dev
      - libxml2-dev
      - libstfl-dev
      - libjson-c-dev
      - libncursesw5-dev
      - asciidoctor
      - libssl-dev
      - gettext
      - g++
    stage-packages:
      - libxml2
      - librtmp1
      - locales-all
      - libcurl4
      - libstfl0
      - kitty-terminfo
      - ncurses-base
      - ncurses-term