forked from phw/peek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
157 lines (151 loc) · 3.88 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: peek
version: '0.9.1+git'
icon: data/icons/512x512/com.uploadedlobster.peek.png
summary: Simple animated GIF screen recorder with an easy to use interface
description: |
Peek creates animated GIF screencasts using FFmpeg and ImageMagick. It was
built for the specific use case of recording screen areas, e.g., for easily
showing UI features of your own apps or for showing a bug in bug reports. It
is not a general purpose screencast app with extended features and it never
will be.
grade: stable
confinement: devmode
apps:
peek:
command: desktop-launch launch-peek
desktop: usr/share/applications/com.uploadedlobster.peek.desktop
plugs:
- x11
- unity7
- home
- gsettings
# ffmpeg:
# command: ffmpeg
# convert:
# command: convert
slots:
session-dbus-interface:
interface: dbus
name: com.uploadedlobster.peek
bus: session
parts:
peek:
plugin: cmake
configflags:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DGSETTINGS_COMPILE=OFF
# source: .
source: /media/sf_devel/peek/
after:
- desktop-gtk3
build-packages:
- libgtk-3-dev
- libkeybinder-3.0-dev
- gettext
- valac
stage-packages:
- libcanberra-gtk3-module
- libkeybinder-3.0-0
install: |
glib-compile-schemas $SNAPCRAFT_PART_INSTALL/usr/share/glib-2.0/schemas
prime:
- -usr/share/doc
- -usr/share/man
launcher:
plugin: dump
source: data/snapcraft/
organize:
launch-peek: bin/launch-peek
install: |
chmod 0555 $SNAPCRAFT_PART_INSTALL/launch-peek
ffmpeg:
plugin: autotools
source: https://ffmpeg.org/releases/ffmpeg-3.2.4.tar.xz
configflags:
- --prefix=/usr
- --disable-debug
- --disable-static
- --enable-gpl
- --enable-libvpx
- --enable-libx264
- --enable-shared
- --enable-x11grab
- --disable-ffplay
- --disable-ffprobe
- --disable-ffserver
- --disable-doc
- --disable-everything
- --enable-decoder=libvpx_vp8
- --enable-decoder=rawvideo
- --enable-encoder=libx264
- --enable-encoder=libvpx_vp8
- --enable-encoder=rawvideo
- --enable-encoder=pam
- --enable-demuxer=webm
- --enable-muxer=mp4
- --enable-muxer=webm
- --enable-muxer=rawvideo
- --enable-filter=crop
- --enable-filter=scale
- --enable-protocol=file
- --enable-indev=x11grab_xcb
build-packages:
- libx264-dev
- libvpx-dev
- yasm
stage-packages:
- libx264-148
- libvpx3
prime:
- -usr/share/applications
- -usr/share/bug
- -usr/share/doc
- -usr/share/fonts
- -usr/share/icons
- -usr/share/locale
- -usr/share/man
imagemagick:
plugin: autotools
source: https://www.imagemagick.org/download/ImageMagick-6.9.7-10.tar.bz2
configflags:
- --prefix=/usr
- --enable-static=no
- --disable-docs
- --disable-deprecated
- --without-autotrace
- --without-bzlib
- --without-djvu
- --without-dps
- --without-fftw
- --without-fontconfig
- --without-fpx
- --without-freetype
- --without-gvc
- --without-jbig
- --without-jpeg
- --without-lcms
- --without-lzma
- --without-magick-plus-plus
- --without-openexr
- --without-openjp2
- --without-pango
- --without-png
- --without-raqm
- --without-tiff
- --without-webp
- --without-wmf
- --without-x
- --without-xml
- --without-zlib
prime:
- -usr/bin/ffplay
- -usr/bin/ffprobe
- -usr/bin/ffserver
- -usr/bin/qt-faststart
- -usr/share/bug
- -usr/share/doc
- -usr/share/fonts
- -usr/share/locale
- -usr/share/man
install: |
sed -i s/avconv/ffmpeg/g $SNAPCRAFT_PART_INSTALL/usr/etc/ImageMagick-6/delegates.xml