~popey/+junk/irssi

« back to all changes in this revision

Viewing changes to snap/snapcraft.yaml

  • Committer: Alan Pope
  • Date: 2018-03-30 22:06:49 UTC
  • Revision ID: alan@popey.com-20180330220649-3js8h2qxt4syqr5u
InitialĀ buildĀ snap

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
name: irssi
 
2
version: stable
 
3
version-script: git -C parts/irssi/build describe --tags
 
4
summary: The client of the future 
 
5
description: |
 
6
  Irssi is a modular chat client that is most commonly known for its text mode 
 
7
  user interface, but 80% of the code isn't text mode specific. Irssi comes 
 
8
  with IRC support built in, and there are third party ICB, SILC, XMPP 
 
9
  (Jabber), PSYC and Quassel protocol modules available.
 
10
 
 
11
grade: stable
 
12
confinement: strict
 
13
 
 
14
apps:
 
15
  irssi:
 
16
    environment:
 
17
        LC_ALL: "C.UTF-8"
 
18
        PERL5LIB:  "$SNAP/usr/lib/x86_64-linux-gnu/perl-base/:$SNAP/usr/lib/x86_64-linux-gnu/perl5/5.22/:$SNAP/usr/share/perl5/:$SNAP/usr/share/perl/5.22.1/:$SNAP/usr/lib/x86_64-linux-gnu/perl/5.22/:$SNAP/usr/lib/x86_64-linux-gnu/perl/5.22.1/"
 
19
        LD_LIBRARY_PATH: "$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio/:$LD_LIBRARY_PATH"
 
20
        HOME: "$SNAP_USER_COMMON"
 
21
    command: irssi
 
22
    plugs:
 
23
      - network
 
24
      - network-bind
 
25
 
 
26
parts:
 
27
  irssi:
 
28
    plugin: autotools
 
29
    source: https://github.com/irssi/irssi.git
 
30
    build-packages:
 
31
      - libglib2.0-dev
 
32
      - perl
 
33
      - libperl-dev
 
34
      - libncurses5-dev
 
35
      - libssl-dev
 
36
      - openssl
 
37
    stage-packages:
 
38
      - perl-base
 
39
      - libperl5.22
 
40
    prepare: |
 
41
      last_committed_tag="$(git describe --tags --abbrev=0)"
 
42
      last_released_tag="$(snap info irssi | awk '$1 == "beta:" { print $2 }')"
 
43
      # If the latest tag from the upstream project has not been released to
 
44
      # beta, build that tag instead of master.
 
45
      if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
 
46
        git fetch
 
47
        git checkout "${last_committed_tag}"
 
48
      fi