-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsnapcraft.yaml
80 lines (76 loc) · 2.29 KB
/
snapcraft.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: vdinar
title: vDinar
icon: share/pixmaps/bitcoin256.png
version: "2.2.1"
summary: Regionally oriented cryptocurrency from former Yugoslavia
description: |
vDinar is a regionally oriented cryptocurrency from former Yugoslavia with an ASIC-resistant mining algorithm and a block structure designed to allocate 2% of every reward and 25% of every transaction fee to a local donation fund.
base: core18
license: MIT
architectures:
- build-on: amd64
- build-on: armhf
- build-on: i386
- build-on: ppc64el
parts:
desktop-qt5:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5 # for loading icon themes which are svg
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
vdinar:
plugin: qmake
qt-version: qt5
source: .
project-files:
- vdinar-qt.pro
build-packages:
- qt5-default
- qt5-qmake
- libqt5gui5
- libqt5core5a
- libqt5dbus5
- qttools5-dev-tools
- libssl-dev
- libdb5.3-dev
- libdb5.3++-dev
- libboost-all-dev
- libminiupnpc-dev
stage-packages:
- libssl-dev
- libdb5.3-dev
- libdb5.3++-dev
- libboost-all-dev
- libminiupnpc-dev
after: [desktop-qt5]
override-build: |
qmake
make
mv vdinar-qt $SNAPCRAFT_PART_INSTALL
mv share/pixmaps/bitcoin128.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
mv contrib/debian/vdinar-qt.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
sed 's+/usr/bin/vdinar-qt+/snap/bin/vdinar+g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/vdinar-qt.desktop
sed 's+/usr/share/pixmaps/bitcoin128.png+${SNAP}/usr/share/pixmaps/bitcoin128.png+g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/vdinar-qt.desktop
apps:
vdinar:
command: desktop-launch $SNAP/vdinar-qt
desktop: usr/share/applications/vdinar-qt.desktop
plugs: [network, network-bind, unity7]