{
 "app_id": "de.renew.Renew",
 "source_url": "https://raw.githubusercontent.com/flathub/de.renew.Renew/master/de.renew.Renew.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--filesystem=host"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:27.964270+00:00",
 "manifest": {
  "id": "de.renew.Renew",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk25"
  ],
  "command": "loadrenew",
  "finish-args": [
   "--env=PATH=/app/jre/bin:/usr/bin:/app/bin",
   "--share=network",
   "--socket=x11",
   "--share=ipc",
   "--filesystem=host"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk25/install.sh"
    ]
   },
   {
    "name": "renew",
    "buildsystem": "simple",
    "build-commands": [
     "unzip -d /app/ renew5.0base.zip -x 'doc/*' 'samples/*' 'bin/win/*'",
     "mv /app/renew5.0 /app/renew",
     "cd /app/renew/bin/unix; yes n | PATH=\"/app/jre/bin:/usr/bin\" ./installrenew",
     "for i in compilestub jcompile makestub renewexport renew loadrenew; do install -Dm755 /app/renew/bin/unix/$i /app/bin/$i; done",
     "mkdir -p /app/share/icons/hicolor/",
     "cp -r /app/renew/bin/unix/freedesktop/icons/* /app/share/icons/hicolor/",
     "for i in $(find /app/share/icons/hicolor/ -type f -name 'application*.png'); do mv \"$i\" \"$(dirname $i)/de.renew.Renew.$(basename $i)\"; done",
     "for i in $(find /app/share/icons/hicolor/ -type f -name 'renew.png'); do mv \"$i\" \"$(dirname $i)/de.renew.Renew.png\"; done",
     "sed 's#\\(<mime-type type=\"application/\\(.*\\)\">\\)#\\1\\n         <icon name=\"de.renew.Renew.application-\\2\" />#' /app/renew/bin/unix/freedesktop/renew.xml > de.renew.Renew.mime.xml",
     "install -Dm644 de.renew.Renew.mime.xml /app/share/mime/packages/de.renew.Renew.mime.xml",
     "cp /app/renew/bin/unix/freedesktop/Renew.desktop de.renew.Renew.desktop",
     "desktop-file-install --set-icon=de.renew.Renew --rebuild-mime-info-cache --dir=/app/share/applications de.renew.Renew.desktop",
     "install -Dm644 de.renew.Renew.appdata.xml /app/share/metainfo/de.renew.Renew.appdata.xml",
     "rm -rf /app/renew/bin/unix/{freedesktop,installrenew}"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://www2.informatik.uni-hamburg.de/TGI/renew/5.0/renew5.0base.zip",
      "sha256": "51dad0bdc53016fc887b794f4fbd5aedbae4031c12a3f9942288d1af57344f38"
     },
     {
      "type": "file",
      "url": "https://www2.informatik.uni-hamburg.de/TGI/renew/appstream/de.renew.Renew.appdata.xml",
      "sha256": "3a472496242728d095ac5bd8aa9f9be57ec59cf66db32ff45a565e8e1137ffa8"
     }
    ]
   }
  ]
 }
}