mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-28 15:31:38 +12:00
a5f422a5e8
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
147 lines
5 KiB
JSON
147 lines
5 KiB
JSON
{
|
|
"app-id": "ch.theologeek.Manuskript",
|
|
"runtime": "org.kde.Platform",
|
|
"runtime-version": "5.15-21.08",
|
|
"sdk": "org.kde.Sdk",
|
|
"add-extensions": {
|
|
"org.freedesktop.Sdk.Extension.texlive": {
|
|
"directory": "texlive",
|
|
"subdirectories": true,
|
|
"autodelete": true,
|
|
"version": "21.08"
|
|
}
|
|
},
|
|
"command": "manuskript",
|
|
"finish-args": [
|
|
"--share=ipc",
|
|
"--socket=x11",
|
|
"--device=dri",
|
|
|
|
/* access to local files */
|
|
"--filesystem=home",
|
|
"--env=QT_QPA_PLATFORM=xcb",
|
|
"--env=TMPDIR=/var/tmp",
|
|
|
|
/* add paths of TeXlive Flatpak extension binaries */
|
|
"--env=PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux"
|
|
],
|
|
"modules": [
|
|
"python3-modules.json",
|
|
{
|
|
"name" : "pyqt5",
|
|
"config-opts" : [
|
|
"--disable-static",
|
|
"--enable-x11"
|
|
],
|
|
"sources" : [
|
|
{
|
|
"type" : "archive",
|
|
"url": "https://files.pythonhosted.org/packages/4d/81/b9a66a28fb9a7bbeb60e266f06ebc4703e7e42b99e3609bf1b58ddd232b9/PyQt5-5.14.2.tar.gz",
|
|
"sha256": "bd230c6fd699eabf1ceb51e13a8b79b74c00a80272c622427b80141a22269eb0"
|
|
},
|
|
{
|
|
"type": "script",
|
|
"commands": [
|
|
"python3 configure.py --assume-shared --confirm-license --no-designer-plugin --no-qml-plugin --sysroot=/app --qsci-api --qsci-api-destdir=/app/qsci --sipdir=/app/share/sip --sip=/app/bin/sip --sip-incdir=/app/include QMAKE_CFLAGS_RELEASE='-I/usr/include/python3.9/' QMAKE_CXXFLAGS_RELEASE='-I/usr/include/python3.9/'"
|
|
],
|
|
"dest-filename": "configure"
|
|
}
|
|
],
|
|
"modules" : [
|
|
{
|
|
"name" : "sip",
|
|
"sources" : [
|
|
{
|
|
"type" : "archive",
|
|
"url" : "https://distfiles.macports.org/py-sip/sip-4.19.22.tar.gz",
|
|
"sha256" : "e1b768824ec1a2ee38dd536b6b6b3d06de27b00a2f5f55470d1b512306e3be45"
|
|
},
|
|
{
|
|
"type": "script",
|
|
"commands": [
|
|
"python3 configure.py --sip-module PyQt5.sip -b ${FLATPAK_DEST}/bin -d ${FLATPAK_DEST}/lib/python3.9/site-packages -e ${FLATPAK_DEST}/include -v ${FLATPAK_DEST}/share/sip --stubsdir=${FLATPAK_DEST}/lib/python3.9/site-packages"
|
|
],
|
|
"dest-filename": "configure"
|
|
}
|
|
],
|
|
"cleanup": [
|
|
"/bin",
|
|
"/include"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "enchant",
|
|
"buildsystem": "autotools",
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://github.com/AbiWord/enchant/releases/download/v2.3.1/enchant-2.3.1.tar.gz",
|
|
"sha256": "7b4b1afcf2cd8bfa691deea6188404d337f23174bbc39b9c2add2bf340736e9c"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "pandoc",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"cp -R . /app/"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://github.com/jgm/pandoc/releases/download/2.14.2/pandoc-2.14.2-linux-amd64.tar.gz",
|
|
"sha256": "1a0548b15255b1c11722f3d4e12fc7a652edf8c9a329a8458f1e765517aec1be"
|
|
}
|
|
],
|
|
"modules": [
|
|
{
|
|
"name": "texlive-extension",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"mkdir /app/texlive"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "manuskript",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"mkdir -p /app/share/manuskript/",
|
|
"cp -R . /app/share/manuskript/",
|
|
"mkdir -p /app/bin/",
|
|
"ln -s ../share/manuskript/bin/manuskript /app/bin/manuskript"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://github.com/olivierkes/manuskript/archive/0.12.0.zip",
|
|
"sha256": "676da858d0a3bb658234191b2b36c56dbb07f03371469990de34f7701842c441"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "ch.theologeek.Manuskript.desktop"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "ch.theologeek.Manuskript.appdata.xml"
|
|
}
|
|
],
|
|
"post-install": [
|
|
/* install icons in several resolutions */
|
|
"install -Dm644 icons/Manuskript/icon-16px.png /app/share/app-info/icons/flatpak/16x16/ch.theologeek.Manuskript.png",
|
|
"install -Dm644 icons/Manuskript/icon-32px.png /app/share/app-info/icons/flatpak/32x32/ch.theologeek.Manuskript.png",
|
|
"install -Dm644 icons/Manuskript/icon-64px.png /app/share/app-info/icons/flatpak/64x64/ch.theologeek.Manuskript.png",
|
|
"install -Dm644 icons/Manuskript/icon-128px.png /app/share/app-info/icons/flatpak/128x128/ch.theologeek.Manuskript.png",
|
|
"install -Dm644 icons/Manuskript/icon-256px.png /app/share/app-info/icons/flatpak/256x256/ch.theologeek.Manuskript.png",
|
|
"install -Dm644 icons/Manuskript/icon-512px.png /app/share/app-info/icons/flatpak/512x512/ch.theologeek.Manuskript.png",
|
|
|
|
/* install desktop file and application data */
|
|
"install -Dm644 ch.theologeek.Manuskript.desktop /app/share/desktop/ch.theologeek.Manuskript.desktop",
|
|
"install -Dm644 ch.theologeek.Manuskript.appdata.xml /app/share/appdata/ch.theologeek.Manuskript.appdata.xml"
|
|
]
|
|
}
|
|
]
|
|
}
|