-
Notifications
You must be signed in to change notification settings - Fork 113
/
snapcraft.yaml
94 lines (91 loc) · 2.13 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
92
93
94
name: tiv
version: "v1.1.1"
summary: Terminal Image Viewer
description: |
tiv is a small C++ program to display images in a (modern) terminal using
RGB ANSI codes and unicode block graphic characters.
environment:
MAGICK_CONFIGURE_PATH: $SNAP/etc/ImageMagick-7
apps:
tiv:
command: usr/bin/tiv
plugs: [home, removable-media]
parts:
tiv:
plugin: make
source-type: tar
source: https://github.com/stefanhaustein/TerminalImageViewer/archive/v1.1.1.tar.gz
source-subdir: src/main/cpp
build-packages:
- g++
- make
- imagemagick
override-build: |
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin/
install $SNAPCRAFT_PART_BUILD/tiv $SNAPCRAFT_PART_INSTALL/usr/bin/
imagemagick:
plugin: autotools
source: https://www.imagemagick.org/download/releases/ImageMagick-7.1.0-22.tar.xz
source-type: tar
configflags:
- --enable-hdri=yes
- --enable-shared=yes
- --enable-static=yes
- --with-autotrace=yes
- --with-fpx=no
- --with-gnu-ld=yes
- --with-gslib=yes
- --with-modules=no
- --with-quantum-depth=32
- --with-rsvg=yes
build-packages:
- autoconf
- build-essential
- fftw-dev
- libautotrace-dev
- libbz2-dev
- libdjvulibre-dev
- libfftw3-dev
- libfontconfig1-dev
- libfreetype6-dev
- libgs-dev
- libgvc6
- libjbig-dev
- libjpeg-dev
- liblcms2-dev
- liblqr-1-0-dev
- libltdl-dev
- libmagick++-dev
- libopenexr-dev
- libopenjp2-7-dev
- libpango1.0-dev
- libperl-dev
- libpng12-dev
- librsvg2-dev
- libtiff5-dev
- libwebp-dev
- libwmf-dev
- libx11-dev
- lzma-dev
- ocl-icd-opencl-dev
- perlmagick
- zlib1g-dev
stage-packages:
- libbz2-1.0
- libfftw3-double3
- libfontconfig1
- libfreetype6
- libgomp1
- libjbig0
- libjpeg8
- liblcms2-2
- liblqr-1-0
- libltdl7
- liblzma5
- libpng12-0
- libtiff5
- libx11-6
- libxext6
- libxml2
- zlib1g