aboutsummaryrefslogtreecommitdiff
path: root/snapcraft.yaml
blob: 89004f62db6595ef8317e978f06c6e72fb6ab08a (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
name: monero
version: 0  # TODO: change this to release version in CI builds
summary: "Monero: the secure, private, untraceable cryptocurrency https://getmonero.org"
description: |
    Monero is a private, secure, untraceable, decentralised digital currency.
    You are your bank, you control your funds, and nobody can trace your transfers
    unless you allow them to do so.
grade: devel
confinement: strict

apps:
    d:
        daemon: forking
        command: daemon.bash
        plugs:
            - network
            - network-bind

    log:
        command: log.bash

    monero:
        command: wallet.bash
        plugs:
            - network

parts:
    wrapper:
        plugin: dump
        source: .
        stage-packages:
            - rlwrap
        organize:
            contrib/snap/daemon.bash: daemon.bash
            contrib/snap/log.bash: log.bash
            contrib/snap/wallet.bash: wallet.bash
        snap:
            - daemon.bash
            - log.bash
            - wallet.bash
            - usr/bin/rlwrap
 
    cmake-build:
        plugin: cmake
        source: .
        build-packages:
            - gcc
            - cmake
            - pkg-config
            - libunbound-dev
            - libevent-dev
            - libboost-all-dev
            - libdb-dev
            - libunwind-dev
            - libminiupnpc-dev
            - libldns-dev
            - libexpat1-dev
            - bison
            - doxygen
            - graphviz
        snap:
            - bin