app-id: io.github.gen2brain.cbconvert runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.golang command: cbconvert finish-args: - --share=ipc - --socket=x11 build-options: env: - GOROOT=/usr/lib/sdk/golang cleanup: - '*.a' - '*.la' - '/bin/Magick*' - '/etc' - '/include' - '/lib/cmake' - '/lib/pkgconfig' - '/lib/ImageMagick*' - '/share' modules: - name: libheif buildsystem: autotools config-opts: - --enable-shared - --disable-static - --disable-libde265 - --disable-dav1d - --disable-go - --disable-gdk-pixbuf - --disable-rav1e - --disable-x265 - --disable-tests - --disable-examples sources: - type: archive url: https://github.com/strukturag/libheif/releases/download/v1.15.2/libheif-1.15.2.tar.gz sha256: 7a4c6077f45180926583e2087571371bdd9cb21b6e6fada85a6fbd544f26a0e2 - name: highway buildsystem: cmake-ninja config-opts: - -DBUILD_SHARED_LIBS=ON - -DHWY_ENABLE_TESTS=OFF - -DHWY_ENABLE_EXAMPLES=OFF - -DHWY_WARNINGS_ARE_ERRORS=OFF sources: - type: archive url: https://github.com/google/highway/archive/refs/tags/1.0.7.tar.gz sha256: 5434488108186c170a5e2fca5e3c9b6ef59a1caa4d520b008a9b8be6b8abe6c5 - name: libjxl buildsystem: cmake-ninja config-opts: - -DBUILD_SHARED_LIBS=ON - -DJPEGXL_ENABLE_BENCHMARK=OFF - -DJPEGXL_ENABLE_COVERAGE=OFF - -DJPEGXL_ENABLE_FUZZERS=OFF - -DJPEGXL_ENABLE_SJPEG=OFF - -DJPEGXL_WARNINGS_AS_ERRORS=OFF - -DJPEGXL_ENABLE_SKCMS=OFF - -DJPEGXL_ENABLE_VIEWERS=OFF - -DJPEGXL_ENABLE_PLUGINS=OFF - -DJPEGXL_ENABLE_DOXYGEN=OFF - -DJPEGXL_ENABLE_MANPAGES=OFF - -DJPEGXL_ENABLE_JNI=OFF - -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF - -DJPEGXL_ENABLE_TCMALLOC=OFF - -DJPEGXL_ENABLE_EXAMPLES=OFF - -DJPEGXL_ENABLE_TOOLS=OFF - -DJPEGXL_ENABLE_OPENEXR=OFF - -DBUILD_TESTING=OFF - -DJPEGXL_FORCE_SYSTEM_BROTLI=ON - -DJPEGXL_FORCE_SYSTEM_LCMS2=ON sources: - type: archive url: https://github.com/libjxl/libjxl/archive/refs/tags/v0.8.2.tar.gz sha256: c70916fb3ed43784eb840f82f05d390053a558e2da106e40863919238fa7b420 - name: ImageMagick buildsystem: autotools config-opts: - --enable-shared - --disable-static - --enable-zero-configuration - --without-frozenpaths - --without-utilities - --without-modules - --without-magick-plus-plus - --without-perl - --without-bzlib - --without-x - --without-zip - --without-dps - --without-djvu - --without-autotrace - --without-fftw - --without-fpx - --without-fontconfig - --without-freetype - --without-gslib - --without-gvc - --without-jbig - --without-openjp2 - --without-lcms - --without-lqr - --without-lzma - --without-openexr - --without-pango - --without-raw - --without-rsvg - --without-wmf - --without-xml - --disable-hdri - --disable-opencl - --disable-openmp - --with-jpeg - --with-png - --with-tiff - --with-webp - --with-heic - --with-jxl sources: - type: archive url: https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-15.tar.gz sha256: 2372192a76af9be43c0543dd7ae6dfbf34b11fc0203583453ce3f9f707c36bcc - name: MuPDF buildsystem: simple build-commands: - HAVE_X11=no HAVE_LIBCRYPTO=no HAVE_GLUT=no HAVE_OBJCOPY=no USE_SYSTEM_LIBS=yes build=debug shared=yes tofu=yes tofu_cjk=yes make libs - install -Dm00755 build/shared-debug-tofu-tofu_cjk/libmupdf.so $FLATPAK_DEST/lib/debug/lib/libmupdf.so.debug - install -dm00755 $FLATPAK_DEST/lib/debug/source/mupdf/source - cp -r source $FLATPAK_DEST/lib/debug/source/mupdf - cp -r include/mupdf $FLATPAK_DEST/include/ - install -Dsm00755 build/shared-debug-tofu-tofu_cjk/libmupdf.so $FLATPAK_DEST/lib/libmupdf.so sources: - type: archive url: https://mupdf.com/downloads/archive/mupdf-1.23.3-source.tar.gz sha256: 1ef9a6409bc0a3271586e1b16f78eb156a579521cd212a124b57c4da8b940aad - type: patch path: 01-mupdf-shared.patch - name: CBconvert buildsystem: simple build-commands: - cp cmd/cbconvert-gui/dist/linux/flatpak/modules.txt cmd/cbconvert-gui/vendor/ - cd cmd/cbconvert-gui && $GOROOT/bin/go build -mod=vendor -trimpath -tags "extlib portal" -ldflags "-s -w -X main.appVersion=1.0.2" - install -Dm00755 cmd/cbconvert-gui/cbconvert-gui $FLATPAK_DEST/bin/cbconvert - install -Dm00644 cmd/cbconvert-gui/dist/linux/cbconvert.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png - install -Dm00644 cmd/cbconvert-gui/dist/linux/flatpak/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop - install -Dm00644 cmd/cbconvert-gui/dist/linux/flatpak/$FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml sources: - type: archive url: https://github.com/gen2brain/cbconvert/archive/refs/tags/v1.0.2.tar.gz sha256: 34964e24fb8a81e6a2b7e556de8aa28d5b5fbd5698157f67fb5e7e9ee02330cc - type: archive url: https://proxy.golang.org/github.com/chai2010/webp/@v/v1.1.1.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/chai2010/webp sha256: f42fe1697007ea12155a5d1342d61787e1f34ca396192e4995dc4f2b350552ac - type: archive url: https://proxy.golang.org/github.com/davecgh/go-spew/@v/v1.1.1.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/davecgh/go-spew sha256: 6b44a843951f371b7010c754ecc3cabefe815d5ced1c5b9409fb2d697e8a890d - type: archive url: https://proxy.golang.org/github.com/disintegration/imaging/@v/v1.6.2.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/disintegration/imaging sha256: 2934e7bace3c8c0b1b4a07144197e8720b9ffbe922600e3a3c764f77792ac7c4 - type: archive url: https://proxy.golang.org/github.com/dustin/go-humanize/@v/v1.0.1.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/dustin/go-humanize sha256: 319404ea84c8a4e2d3d83f30988b006e7dd04976de3e1a1a90484ad94679fa46 - type: archive url: https://proxy.golang.org/github.com/fvbommel/sortorder/@v/v1.1.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/fvbommel/sortorder sha256: a4dbc58d2f72212474a7b5e1894b11d6712b687f4cc66ca1f6e202a375d252f7 - type: archive url: https://proxy.golang.org/github.com/gen2brain/go-fitz/@v/v1.23.1.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/go-fitz sha256: 60fc98c3420d7f7347e7a454fdfd66bca960accc8ed0ac582f4b4d82b38513c8 - type: archive url: https://proxy.golang.org/github.com/gen2brain/go-unarr/@v/v0.1.7.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/go-unarr sha256: 6f3418edef461c2e1ce5ba77141d402b04d4cf86e89b27c5dc20c922ac63ca4e - type: archive url: https://proxy.golang.org/github.com/gen2brain/iup-go/iup/@v/v0.0.0-20230906093706-8b037fe6a7bd.zip strip-components: 4 dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/iup-go/iup sha256: a75dbec0ce228214533ee971771233f8b57653828af04bc012f72b624b76be5d - type: archive url: https://proxy.golang.org/github.com/godbus/dbus/v5/@v/v5.1.0.zip strip-components: 4 dest: cmd/cbconvert-gui/vendor/github.com/godbus/dbus/v5 sha256: 03dfa8e71089a6f477310d15c4d3a036d82d028532881b50fee254358e782ad9 - type: archive url: https://proxy.golang.org/github.com/google/uuid/@v/v1.3.1.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/google/uuid sha256: 9d9d6cfb28ce6dbe4b518c42c6bccd67bb531a106859808f36e82a5c3fb8c64d - type: archive url: https://proxy.golang.org/github.com/k0kubun/go-ansi/@v/v0.0.0-20180517002512-3bf9e2903213.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/k0kubun/go-ansi sha256: 28366085f1787eaf9d6589f050455855f01caf559f2c6d1c4f4e590cd0abbdef - type: archive url: https://proxy.golang.org/github.com/mattn/go-isatty/@v/v0.0.16.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/mattn/go-isatty sha256: 3d5ff19c4b2a2a164feb84f5cc38af349380c0c4a03d0443dce40bbd6ec3fd2b - type: archive url: https://proxy.golang.org/github.com/mattn/go-runewidth/@v/v0.0.13.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/mattn/go-runewidth sha256: c104e14c1612a6d736bd109fe5fec9749a8146e1f7d37844d8a0a1296e00d4e9 - type: archive url: https://proxy.golang.org/github.com/mitchellh/colorstring/@v/v0.0.0-20190213212951-d06e56a500db.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/mitchellh/colorstring sha256: d0733284b20567055e374b420373f5508fa47e95204e59e4b8a66834e7e3964d - type: archive url: https://proxy.golang.org/github.com/pmezard/go-difflib/@v/v1.0.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/pmezard/go-difflib sha256: de04cecc1a4b8d53e4357051026794bcbc54f2e6a260cfac508ce69d5d6457a0 - type: archive url: https://proxy.golang.org/github.com/rivo/uniseg/@v/v0.3.4.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/rivo/uniseg sha256: 410ba5034e1683946d68e7fd50ad793c2ad72b157f2959fe4719449666d1e63f - type: archive url: https://proxy.golang.org/github.com/schollz/progressbar/v3/@v/v3.10.0.zip strip-components: 4 dest: cmd/cbconvert-gui/vendor/github.com/schollz/progressbar/v3 sha256: 2cdbf5e4bc314bf140911a923f22d5d9401d73f3b2c7311f6df5c2837d2743ba - type: archive url: https://proxy.golang.org/github.com/spf13/pflag/@v/v1.0.5.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/spf13/pflag sha256: fc6e704f2f6a84ddcdce6de0404e5340fa20c8676181bf5d381b17888107ba84 - type: archive url: https://proxy.golang.org/github.com/stretchr/objx/@v/v0.1.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/stretchr/objx sha256: 1fa10dab404ed7fc8ed2a033f8784187d5df3513ced3841ce39e46d37850eb1d - type: archive url: https://proxy.golang.org/github.com/stretchr/testify/@v/v1.3.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/stretchr/testify sha256: 8c935aed71cc334d5bfdf04b34909d9965cf28f80198dec13fb954dc292e6588 - type: archive url: https://proxy.golang.org/github.com/strukturag/libheif/@v/v1.15.2.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/strukturag/libheif sha256: bec8ad8e81d33d96b9ea8d11036a14ff4501b62f2cb79dbe49147a701c5c1d38 - type: archive url: https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.4.13.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/yuin/goldmark sha256: bb41a602b174345fda392c8ad83fcc93217c285c763699677630be90feb7a5e3 - type: archive url: https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20210921155107-089bfa567519.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/crypto sha256: eb2426a7891915213cc5da1da7b6fc6e9e2cf253d518d8e169e038e287f414e3 - type: archive url: https://proxy.golang.org/golang.org/x/image/@v/v0.12.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/image sha256: eee2ea2f688c5bbe2a8ce36ba57f37573f5b63828560cd34f8621f0f8d07e6bd - type: archive url: https://proxy.golang.org/golang.org/x/mod/@v/v0.8.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/mod sha256: 4ae8176799d8cda819e70731ba6855735003e7e4930436e34584c75c96c496e0 - type: archive url: https://proxy.golang.org/golang.org/x/net/@v/v0.6.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/net sha256: 7ff2f50b1f3a58833f867d1646421569a91d8c19a0999793c5af79b10c16b8b8 - type: archive url: https://proxy.golang.org/golang.org/x/sync/@v/v0.3.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/sync sha256: 1870e7a196f7119d4c6edba7de9cdfc49ee13c8cb7921f3a947568171c6152e0 - type: archive url: https://proxy.golang.org/golang.org/x/sys/@v/v0.5.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/sys sha256: cf47336ac1bf675fa6d6dd5ac5399b0143c513404c449fa3f3380a58123c7908 - type: archive url: https://proxy.golang.org/golang.org/x/term/@v/v0.5.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/term sha256: 7d89c49ab41306950128a0f4b7c67fb8e2d2f637ece8e024e6cf38d17a33193b - type: archive url: https://proxy.golang.org/golang.org/x/text/@v/v0.13.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/text sha256: ed544fb017e967c053892df7b068612fce707ba32b57f35824cb041e31c6ae0f - type: archive url: https://proxy.golang.org/golang.org/x/tools/@v/v0.6.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/tools sha256: 9a29c8904c2acd4b65825e916cbdaf417086f35bb68c54af9a6283a0e1341e85 - type: archive url: https://proxy.golang.org/golang.org/x/xerrors/@v/v0.0.0-20190717185122-a985d3407aa7.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/golang.org/x/xerrors sha256: c4e9f063cfed546c90f00a9657deac4f915a8994f8cbe6dbd3f18e79eb8302cf - type: archive url: https://proxy.golang.org/gopkg.in/gographics/imagick.v3/@v/v3.4.3.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/gopkg.in/gographics/imagick.v3 sha256: ae0a425a2ffcbe92447c5da005deff2c0aac1e25995c443b86ae4bd48861d9e1 - type: archive url: https://proxy.golang.org/github.com/gen2brain/cbconvert/@v/v1.0.0.zip strip-components: 3 dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/cbconvert sha256: 116e440f681fb109a2a51b2ae0888435b3702291e71e26ba79da313c070ec13c