-
Notifications
You must be signed in to change notification settings - Fork 65
/
snapcraft.yaml
46 lines (39 loc) · 1.03 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
# Copyright 2020 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the GNU GPL v3
# license that can be found in the LICENSE file.
#
name: wayback
version: 'git'
summary: A toolkit to upload files to IPFS pinning services.
description: |
A toolkit for snapshot webpage to the Wayback Machine.
Website https://github.com/wabarc/wayback
base: core20
grade: stable
confinement: strict
compression: lzo
architectures:
- amd64
- arm64
- armhf
- i386
parts:
wayback:
plugin: go
source: https://github.com/wabarc/wayback.git
override-build: |
make build
install $SNAPCRAFT_PART_BUILD/build/binary/wayback -D $SNAPCRAFT_PART_INSTALL/bin/wayback
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
if [ ! -e $SNAPCRAFT_PART_INSTALL/bin/wayback ]; then
ln -s $SNAPCRAFT_PART_INSTALL/bin/wayback $SNAPCRAFT_PART_INSTALL/bin/wayback
fi
build-packages:
- build-essential
apps:
wayback:
command: bin/wayback
plugs:
- home
- network
- network-bind