| 1 | name: peek |
| 2 | version: git |
| 3 | adopt-info: peek |
| 4 | grade: stable |
| 5 | confinement: strict |
| 6 | base: core18 |
| 7 | |
| 8 | apps: |
| 9 | peek: |
| 10 | command: usr/bin/peek |
| 11 | desktop: share/applications/com.uploadedlobster.peek.desktop |
| 12 | common-id: com.uploadedlobster.peek.desktop |
| 13 | extensions: [gnome-3-28] |
| 14 | plugs: |
| 15 | - gsettings |
| 16 | - home |
| 17 | ffmpeg: |
| 18 | command: ffmpeg |
| 19 | |
| 20 | slots: |
| 21 | session-dbus-interface: |
| 22 | interface: dbus |
| 23 | name: com.uploadedlobster.peek |
| 24 | bus: session |
| 25 | |
| 26 | parts: |
| 27 | peek: |
| 28 | plugin: meson |
| 29 | meson-parameters: |
| 30 | - --prefix=/usr |
| 31 | - -Dbuild-tests=false |
| 32 | - -Denable-filechoosernative=false |
| 33 | - -Denable-gnome-shell=false |
| 34 | - -Denable-open-file-manager=false |
| 35 | source: . |
| 36 | source-type: git |
| 37 | parse-info: [usr/share/metainfo/com.uploadedlobster.peek.appdata.xml] |
| 38 | build-packages: |
| 39 | - libgtk-3-dev |
| 40 | - libkeybinder-3.0-dev |
| 41 | - gettext |
| 42 | - valac |
| 43 | stage-packages: |
| 44 | - libcanberra-gtk3-module |
| 45 | - libkeybinder-3.0-0 |
| 46 | override-pull: | |
| 47 | snapcraftctl pull |
| 48 | sed -i.bak -e 's|Icon=com.uploadedlobster.peek$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/com.uploadedlobster.peek.svg|g' data/com.uploadedlobster.peek.desktop.in |
| 49 | prime: |
| 50 | - -usr/lib/pkgconfig |
| 51 | - -usr/lib/*-linux-*/dri |
| 52 | - -usr/lib/*-linux-*/libasound* |
| 53 | - -usr/lib/*-linux-*/libgnutls* |
| 54 | - -usr/lib/*-linux-*/libicu* |
| 55 | - -usr/lib/*-linux-*/libLLVM* |
| 56 | - -usr/lib/*-linux-*/libX11* |
| 57 | - -usr/share/alsa |
| 58 | - -usr/share/bug |
| 59 | - -usr/share/doc |
| 60 | - -usr/share/fonts |
| 61 | - -usr/share/man |
| 62 | - -usr/share/mime |
| 63 | - -usr/share/libthai |
| 64 | - -usr/share/lintian |
| 65 | - -usr/share/pkgconfig |
| 66 | - -usr/share/sounds |
| 67 | - -usr/share/X11 |
| 68 | |
| 69 | ffmpeg: |
| 70 | plugin: autotools |
| 71 | source: https://ffmpeg.org/releases/ffmpeg-4.0.tar.xz |
| 72 | configflags: |
| 73 | - --prefix=/usr |
| 74 | - --disable-debug |
| 75 | - --disable-static |
| 76 | - --enable-gpl |
| 77 | - --enable-libvpx |
| 78 | - --enable-libx264 |
| 79 | - --enable-shared |
| 80 | - --enable-libxcb |
| 81 | - --enable-libxcb-xfixes |
| 82 | - --disable-libxcb-shape |
| 83 | - --disable-ffplay |
| 84 | - --disable-ffprobe |
| 85 | - --disable-doc |
| 86 | - --disable-everything |
| 87 | - --enable-bsf=vp9_superframe |
| 88 | - --enable-decoder=libvpx_vp9 |
| 89 | - --enable-decoder=png |
| 90 | - --enable-decoder=rawvideo |
| 91 | - --enable-encoder=apng |
| 92 | - --enable-encoder=ffvhuff |
| 93 | - --enable-encoder=gif |
| 94 | - --enable-encoder=libvpx_vp9 |
| 95 | - --enable-encoder=libx264 |
| 96 | - --enable-encoder=png |
| 97 | - --enable-demuxer=image2 |
| 98 | - --enable-demuxer=matroska |
| 99 | - --enable-muxer=apng |
| 100 | - --enable-muxer=gif |
| 101 | - --enable-muxer=image2 |
| 102 | - --enable-muxer=mp4 |
| 103 | - --enable-muxer=webm |
| 104 | - --enable-filter=crop |
| 105 | - --enable-filter=fps |
| 106 | - --enable-filter=palettegen |
| 107 | - --enable-filter=paletteuse |
| 108 | - --enable-filter=scale |
| 109 | - --enable-protocol=file |
| 110 | - --enable-indev=xcbgrab |
| 111 | build-packages: |
| 112 | - libx264-dev |
| 113 | - libvpx-dev |
| 114 | - yasm |
| 115 | stage-packages: |
| 116 | - libx264-152 |
| 117 | - libvpx5 |
| 118 | - libxcb-xfixes0 |
| 119 | prime: |
| 120 | - -usr/include |
| 121 | - -usr/lib/pkgconfig |
| 122 | - -usr/share/applications |
| 123 | - -usr/share/bug |
| 124 | - -usr/share/doc |
| 125 | - -usr/share/fonts |
| 126 | - -usr/share/ffmpeg/examples |
| 127 | - -usr/share/icons |
| 128 | - -usr/share/locale |
| 129 | - -usr/share/man |