{
 "app_id": "net.sourceforge.Pdfedit",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.Pdfedit/master/net.sourceforge.Pdfedit.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:13:46.577705+00:00",
 "manifest": {
  "app-id": "net.sourceforge.Pdfedit",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "pdfedit",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--persist=.pdfedit",
   "--persist=.qt"
  ],
  "build-options": {
   "env": {
    "V": "1"
   }
  },
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/pkgconfig",
   "/share/aclocal",
   "/man",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "qt3",
    "buildsystem": "simple",
    "build-commands": [
     "rm -rf src/3rdparty/{lib*,sqlite,zlib} #ensure bundled libraries are not used",
     "echo yes | ./configure --prefix=/app -platform linux-g++`[ $(uname -m) == 'x86_64' ] && echo '-64'` -system-zlib -system-libpng -system-libjpeg -no-imgfmt-mng -xft -no-exceptions -stl -thread -largefile -shared -release",
     "QTDIR=`/usr/bin/pwd` LD_LIBRARY_PATH=\"$QTDIR/lib:$LD_LIBRARY_PATH\" PATH=\"$QTDIR/bin:$PATH\" QTDEST=\"$QTDIR\" CFLAGS=\"$CFLAGS -w -fPIC\" CXXFLAGS=\"$CXXFLAGS -fPIC -w  -DQT_NO_XFTFREETYPE -DQT_NO_XINERAMA -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_POCKETPC -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_AQUA -DQT_NO_NIS -DQT_NO_IMAGEIO_MNG -DQT_NO_CODECS -DQT_NO_BIG_CODECS -DQT_LITE_COMPONENT\" /usr/bin/make -e",
     "QTDIR=`/usr/bin/pwd` LD_LIBRARY_PATH=\"$QTDIR/lib:$LD_LIBRARY_PATH\" PATH=\"$QTDIR/bin:$PATH\" QTDEST=\"$QTDIR\" /usr/bin/make install",
     "ln -s libqt-mt.so /app/lib/libqt.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz",
      "sha256": "1b7a1ff62ec5a9cb7a388e2ba28fda6f960b27f27999482ebeceeadb72ac9f6e"
     },
     {
      "type": "patch",
      "strip-components": 1,
      "options": [
       "-l"
      ],
      "paths": [
       "fedora_rpm_patches/qt-x11-free-3.3.8b-CVE-2013-4549.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-CVE-2014-0190.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-CVE-2015-0295.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-CVE-2015-1860.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-PostgreSQL12.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-cstddef.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-freetype251.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-hardcode-buildkey.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-mariadb.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-postgresql11.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-qimage-parentheses.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-qlocale-aliasing.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-sane_defaults.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-system-sqlite2.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-system-zlib-header.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8b-uic-multilib.patch",
       "fedora_rpm_patches/qt-3.0.5-nodebug.patch",
       "fedora_rpm_patches/qt-3.1.0-makefile.patch",
       "fedora_rpm_patches/qt-3.3.3-gtkstyle.patch",
       "fedora_rpm_patches/qt-3.3.4-print-CJK.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-214371.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-gu-228452.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-ml_IN-209097.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-ml_IN-209974.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-ml_IN-217657.patch",
       "fedora_rpm_patches/qt-3.3.6-fontrendering-te_IN-211259.patch",
       "fedora_rpm_patches/qt-3.3.8-fontrendering-#214570.patch",
       "fedora_rpm_patches/qt-3.3.8-fontrendering-as_IN-209972.patch",
       "fedora_rpm_patches/qt-uic-nostdlib.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.2-quiet.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.3-gl.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.3-qembed.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.4-fullscreen.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.5-uic.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.6-qfontdatabase_x11.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.6-strip.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.7-arm.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.7-umask.patch",
       "fedora_rpm_patches/qt-x11-free-3.3.8-odbc.patch"
      ]
     },
     {
      "type": "patch",
      "strip-components": 0,
      "options": [
       "-l"
      ],
      "paths": [
       "fedora_rpm_patches/0079-compositing-types.patch",
       "fedora_rpm_patches/0080-net-wm-sync-request-2.patch",
       "fedora_rpm_patches/0084-compositing-properties.patch",
       "fedora_rpm_patches/qt-3.3.8-libpng15.patch"
      ]
     },
     {
      "type": "patch",
      "path": "qt3_flatpak_build_fixes.patch"
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh",
     "./b2 install --prefix=/app --with-system --with-random define=\"BOOST_SYSTEM_NO_DEPRECATED\" -sNO_BZIP2=1 cxxflags=-fPIC cflags=-fPIC"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2",
      "sha256": "1bed88e40401b2cb7a1f76d4bab499e352fa4d0c5f31c0dbae64e24d34d7513b"
     }
    ]
   },
   {
    "name": "pdfedit",
    "buildsystem": "autotools",
    "build-options": {
     "cflags": "-w -fPIC",
     "cxxflags": "-fPIC -std=c++11 -w -DQSDEBUGGER -DQT_CLEAN_NAMESPACE -DCONFIG_DATA_PATH=/app/share/pdfedit",
     "env": [
      "QTDIR=/app"
     ]
    },
    "make-args": [
     "-e"
    ],
    "no-autogen": true,
    "config-opts": [
     "--with-boost=/app"
    ],
    "post-install": [
     "install -Dm644 /app/share/pdfedit/icon/pdfedit_icon.svg /app/share/icons/hicolor/scalable/apps/net.sourceforge.Pdfedit.svg",
     "desktop-file-install --dir=/app/share/applications net.sourceforge.Pdfedit.desktop",
     "install -Dm644 net.sourceforge.Pdfedit.metainfo.xml /app/share/metainfo/net.sourceforge.Pdfedit.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.code.sf.net/p/pdfedit/git",
      "tag": "0.4.5.fl2",
      "commit": "27ab0085d1c7502658b385bffc861c38b3f52abf"
     },
     {
      "type": "patch",
      "paths": [
       "qsa_configure2.patch",
       "pdfedit-freetype2.patch"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .",
       "autoreconf -vfi"
      ]
     },
     {
      "type": "file",
      "path": "net.sourceforge.Pdfedit.metainfo.xml"
     },
     {
      "type": "file",
      "path": "net.sourceforge.Pdfedit.desktop"
     }
    ]
   }
  ]
 }
}