This is an attempt to share the effort of packaging qpdf and pikepdf for flatpaks.
Add this repository to your flatpak manifest as a git submodule just like shared-modules:
git submodule add ../../dreua/flatpak-module-qpdf-pikepdf.git
(The ../../
bit is a nice solution to use either https or git/ssh, because the flathub builder will not work with the latter.)
Use either qpdf.yaml
or pikepdf.yaml
in your recipe, for example:
modules:
- flatpak-module-qpdf-pikepdf/pikepdf.yaml
Don't forget to regularly update the submodule in order to get the latest versions or configure dependabot in your repository to create a PR whenever an update is avialable.
Python dependencies are generated using flatpak-pip-generator as far as possible, see the
generate-pikepdf
script.
Simple version updates can be done with the run-external-data-checker
script in the meantime, but in the rare case where pikepdf might add or remove dependencies, the generate-pikepdf
script might still come in handy.