This file contains information about building and packaging Peek. The information here is mainly for developers and packagers, end users should refer to the installation instructions in README.md.
From inside the Peek source folder run:
meson setup --prefix=/usr builddir
cd builddir
ninja
ninja might be called ninja-build on some distributions.
ninja test
G_MESSAGES_DEBUG=all ./peek
ninja peek-update-po
ninja peek-pot
- meson (>= 0.47.0)
- valac (>= 0.22)
- libgtk-3-dev (>= 3.20)
- libkeybinder-3.0-dev
- libxml2-utils
- gettext (>= 0.19 for localized .desktop entry)
- txt2man (optional for building man page)
- gzip (optional for building man page)
- libgtk-3-0 (>= 3.20)
- libglib2.0 (>= 2.38)
- libkeybinder-3.0-0
- ffmpeg >= 3
Install the GNOME runtime and SDK as described in http://docs.flatpak.org/en/latest/getting-setup.html
Note: Flatpak >= 0.9.3 is required for the build.
Build Flatpak and place it in flatpak-repo repository:
flatpak-builder --repo=flatpak-repo com.uploadedlobster.peek \
--gpg-sign=B539AD7A5763EE9C1C2E4DE24C14923F47BF1A02 \
flatpak-stable.json --force-clean
You can build for different architecture with the --arch parameter, e.g.
--arch=x86_64 or --arch=i386.
Generate a .flatpak file for single file distribution:
flatpak build-bundle flatpak-repo peek-1.0.0-0.flatpak \
com.uploadedlobster.peek stable