~ubuntu-desktop/ghex/snap-share-content

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
name: ghex-udt
version: git
summary: GNOME Hex Editor.
description: |
  GHex can load raw data from binary files and display them for editing in the
  traditional hex editor view. The display is split in two columns, with
  hexadecimal values in one column and the ASCII representation in the other.
  A useful tool for working with raw data.
  .
  This is a build from the current git version.
confinement: strict
grade: stable

plugs:
    gnome318-platform:
      interface: content
      target: gnome-platform
      default-provider: gnome318-udt:gnome318-platform

apps:
  ghex:
    command: desktop-launch ghex
    plugs: [unity7, gsettings, home]

parts:
  desktop-gnome-platform:
    source-subdir: gtk
    plugin: make
    make-parameters: ["FLAVOR=gtk3"]
    build-packages:
      - libgtk-3-dev
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-branch: gnome-platform
    install: mkdir -p $SNAPCRAFT_PART_INSTALL/gnome-platform
  ghex:
    source: https://git.gnome.org/browse/ghex
    source-type: git
    source-branch: gnome-3-10
    plugin: autotools
    # workaround the issue described in https://launchpad.net/bugs/1583250
    configflags: [--prefix=/snap/ghex-udt/current/usr]
    organize:
      snap/ghex-udt/current/usr: usr
    build-packages:
      - gnome-common
      - libglib2.0-dev
      - libgtk-3-dev
      - libgail-3-dev
      - yelp-tools
  # workaround snapcraft trying to outsmart us by copying ldd listed libraries
  workaround:
    plugin: nil
    stage-packages:
      - libgtk-3-0
    snap:
      - "-*"