| 1 |
app: peek |
| 2 |
|
| 3 |
build: |
| 4 |
packages: |
| 5 |
- cmake |
| 6 |
- vala-devel |
| 7 |
- pkgconfig(gtk+-3.0) |
| 8 |
- pkgconfig(keybinder-3.0) |
| 9 |
- pkgconfig(vpx) |
| 10 |
- gettext |
| 11 |
- linuxdeployqt |
| 12 |
- yasm |
| 13 |
|
| 14 |
git: |
| 15 |
- https://github.com/phw/peek.git |
| 16 |
- https://git.videolan.org/git/x264.git |
| 17 |
|
| 18 |
files: |
| 19 |
- https://ffmpeg.org/releases/ffmpeg-4.0.tar.xz |
| 20 |
|
| 21 |
script: |
| 22 |
|
| 23 |
- cd $BUILD_SOURCE_DIR/peek |
| 24 |
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release -DGSETTINGS_COMPILE=OFF -DLOCALEDIR=share/locale . |
| 25 |
- make |
| 26 |
- make DESTDIR=$BUILD_APPDIR install |
| 27 |
|
| 28 |
- cd $BUILD_SOURCE_DIR/x264 |
| 29 |
- ./configure --prefix=/usr --enable-pic --enable-shared --disable-asm |
| 30 |
- make |
| 31 |
- make DESTDIR=$BUILD_APPDIR install |
| 32 |
|
| 33 |
- cd $BUILD_SOURCE_DIR |
| 34 |
- tar -xf ffmpeg-4.0.tar.xz |
| 35 |
- cd ffmpeg-4.0 |
| 36 |
- ./configure --prefix=/usr --extra-ldflags="-L${BUILD_APPDIR}/usr/lib" --extra-cflags="-I${BUILD_APPDIR}/usr/include" --disable-debug --disable-static --enable-gpl --enable-libvpx --enable-libx264 --enable-shared --enable-libxcb --enable-libxcb-xfixes --disable-libxcb-shape --disable-ffplay --disable-ffprobe --disable-doc --disable-everything --enable-bsf=vp9_superframe --enable-decoder=libvpx_vp9 --enable-decoder=png --enable-decoder=rawvideo --enable-encoder=apng --enable-encoder=ffvhuff --enable-encoder=gif --enable-encoder=libvpx_vp9 --enable-encoder=libx264 --enable-encoder=png --enable-demuxer=image2 --enable-demuxer=matroska --enable-muxer=apng --enable-muxer=gif --enable-muxer=image2 --enable-muxer=mp4 --enable-muxer=webm --enable-filter=crop --enable-filter=fps --enable-filter=palettegen --enable-filter=paletteuse --enable-filter=scale --enable-protocol=file --enable-indev=xcbgrab |
| 37 |
- make |
| 38 |
- make DESTDIR=$BUILD_APPDIR install |
| 39 |
|
| 40 |
- export LD_LIBRARY_PATH=${BUILD_APPDIR}/usr/lib:$LD_LIBRARY_PATH |
| 41 |
- linuxdeployqt ${BUILD_APPDIR}/usr/bin/ffmpeg -bundle-non-qt-libs |
| 42 |
- linuxdeployqt ${BUILD_APPDIR}/usr/bin/peek -bundle-non-qt-libs |
| 43 |
- glib-compile-schemas $BUILD_APPDIR/usr/share/glib-2.0/schemas |
| 44 |
- cp $BUILD_APPDIR/usr/share/applications/com.uploadedlobster.peek.desktop $BUILD_APPDIR |
| 45 |
- cp $BUILD_APPDIR/usr/share/icons/hicolor/256x256/apps/com.uploadedlobster.peek.png $BUILD_APPDIR |
| 46 |
- mkdir -p $BUILD_APPDIR/usr/lib/peek |
| 47 |
- mv $BUILD_APPDIR/usr/bin/peek $BUILD_APPDIR/usr/lib/peek/peek-run |
| 48 |
- cp $BUILD_SOURCE_DIR/appimage-launch-peek $BUILD_APPDIR/usr/bin/peek |
| 49 |
- chmod +x $BUILD_APPDIR/usr/bin/peek |
| 50 |
- rm -rf ${BUILD_APPDIR}/usr/bin/x264 |
| 51 |
- rm -rf ${BUILD_APPDIR}/usr/include |
| 52 |
- rm -rf ${BUILD_APPDIR}/usr/lib/pkgconfig |
| 53 |
- rm -rf ${BUILD_APPDIR}/usr/lib/*.la |
| 54 |
- rm -rf ${BUILD_APPDIR}/usr/share/gtk-doc |