app: peek build: packages: - cmake - vala-devel - pkgconfig(gtk+-3.0) - pkgconfig(keybinder-3.0) - pkgconfig(vpx) - gettext - linuxdeployqt - yasm git: - https://github.com/phw/peek.git - https://git.videolan.org/git/x264.git files: - https://ffmpeg.org/releases/ffmpeg-4.0.tar.xz script: # Build Peek - cd $BUILD_SOURCE_DIR/peek - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release -DGSETTINGS_COMPILE=OFF -DLOCALEDIR=share/locale . - make - make DESTDIR=$BUILD_APPDIR install # Build libx264 - cd $BUILD_SOURCE_DIR/x264 - ./configure --prefix=/usr --enable-pic --enable-shared --disable-asm - make - make DESTDIR=$BUILD_APPDIR install # Build FFmpeg - cd $BUILD_SOURCE_DIR - tar -xf ffmpeg-4.0.tar.xz - cd ffmpeg-4.0 - ./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 - make - make DESTDIR=$BUILD_APPDIR install # Finalize AppDir - export LD_LIBRARY_PATH=${BUILD_APPDIR}/usr/lib:$LD_LIBRARY_PATH - linuxdeployqt ${BUILD_APPDIR}/usr/bin/ffmpeg -bundle-non-qt-libs - linuxdeployqt ${BUILD_APPDIR}/usr/bin/peek -bundle-non-qt-libs - glib-compile-schemas $BUILD_APPDIR/usr/share/glib-2.0/schemas - cp $BUILD_APPDIR/usr/share/applications/com.uploadedlobster.peek.desktop $BUILD_APPDIR - cp $BUILD_APPDIR/usr/share/icons/hicolor/256x256/apps/com.uploadedlobster.peek.png $BUILD_APPDIR - mkdir -p $BUILD_APPDIR/usr/lib/peek - mv $BUILD_APPDIR/usr/bin/peek $BUILD_APPDIR/usr/lib/peek/peek-run - cp $BUILD_SOURCE_DIR/appimage-launch-peek $BUILD_APPDIR/usr/bin/peek - chmod +x $BUILD_APPDIR/usr/bin/peek - rm -rf ${BUILD_APPDIR}/usr/bin/x264 - rm -rf ${BUILD_APPDIR}/usr/include - rm -rf ${BUILD_APPDIR}/usr/lib/pkgconfig - rm -rf ${BUILD_APPDIR}/usr/lib/*.la - rm -rf ${BUILD_APPDIR}/usr/share/gtk-doc