-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
58 lines (56 loc) · 1.48 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
name: rnp
base: core18
adopt-info: rnp
summary: High performance C++ OpenPGP tools, fully compliant to RFC 4880 # 79 char long summary
description: |
RNP is a set of OpenPGP (RFC4880) tools that works on Linux, *BSD and macOS as a replacement of GnuPG.
It is maintained by Ribose after being forked from NetPGP, itself originally written for NetBSD.
grade: stable
confinement: strict
parts:
rnp:
after: ["botan2"]
plugin: cmake
override-pull: |
snapcraftctl pull
last_committed_tag="$(git tag -l --sort=-v:refname | head -1)"
VERSION=${last_committed_tag}
git fetch
git checkout "${VERSION}"
echo "Setting version to $VERSION"
snapcraftctl set-version "${VERSION}"
source-type: git
source: https://github.com/rnpgp/rnp.git
build-packages:
- g++
- make
- cmake
- libbz2-dev
- libz-dev
- libjson-c-dev
stage-packages:
- bzip2
- zlib1g
- libjson-c3
prime:
- bin/rnp
- bin/rnpkeys
botan2:
plugin: make
override-build: ./configure.py --prefix=/usr && snapcraftctl build
source: https://botan.randombit.net/releases/Botan-2.13.0.tar.xz
source-checksum: sha256/f57ae42a41e1091bca58f44f41addebd9a390b651603952c881ec89d50187e90
build-packages:
- g++
- make
- python-minimal
stage-packages:
- bzip2
- zlib1g
prime:
- usr/lib/libbotan*.so*
apps:
rnp:
command: bin/rnp
rnpkeys:
command: bin/rnpkeys