-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
91 lines (84 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
81
82
83
84
85
86
87
88
89
90
91
# https://snapcraft.io/docs/snapcraft-yaml-reference
name: pdf-question-spacer
version: git
summary: Add whitespace to pdfs
description: |
pdf-question-spacer is a tool used to add whitespace to pdfs. It allows for the addition of whitespace to sections of a pdf matching a regular expression, whilst also ensuring page breaks do not cut off shifted text. Alternatively, the user can select which regions of the pdf to add whitespace to interactively.
confinement: strict
base: core18
parts:
debian-multiarch-triplet-provider-launch:
plugin: nil
stage-snaps:
- debian-multiarch-triplet-provider-launch
tcltk-launch:
plugin: nil
stage-snaps:
- tcltk-launch
openjpeg:
plugin: cmake
source: https://github.com/uclouvain/openjpeg/archive/v2.4.0.tar.gz
source-type: tar
imagemagick:
plugin: autotools
source: https://github.com/ImageMagick/ImageMagick/archive/7.1.0-16.tar.gz
source-type: tar
after: [openjpeg]
build-packages:
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libwebp-dev
stage-packages:
- libjpeg8
- libpng16-16
- libtiff5
- libwebpmux3
- libgomp1
- libwebpdemux2
pdf-question-spacer:
after: [imagemagick]
plugin: python
python-version: python3
source: https://github.com/laurencewarne/pdf-question-spacer.git
# override-build: |
# snapcraftctl build
# cd $SNAPCRAFT_PART_INSTALL/etc/ImageMagick-6
# sed -i '/disable ghostscript format types/,+6d' policy.xml
build-packages:
- python3-tk
- execstack
- build-essential
- ghostscript
#- imagemagick
stage-packages:
- ffmpeg
- libsm6
- libpng-dev
- libxext6
- poppler-utils
- python3-tk
- python3-dev
- ghostscript
- build-essential
#- imagemagick
# organize:
# usr/bin/convert-im6.q16: usr/bin/convert
apps:
# pdf-question-spacer:
# command: bin/pdf-question-spacer
space-pdf-interactive:
command: space-pdf-interactive
command-chain:
- bin/debian-multiarch-triplet-provider-launch
- bin/tcltk-launch
plugs:
- home
- wayland
- x11
- desktop
- desktop-legacy
- gsettings
- opengl
- network
- network-bind