gimp/build/flatpak/org.gimp.GIMP-nightly.json

830 lines
32 KiB
JSON

{
"app-id": "org.gimp.GIMP",
"branch": "master",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "gimp-2.99",
"separate-locales": false,
"rename-desktop-file": "gimp.desktop",
"rename-icon": "gimp",
"finish-args": [
"--share=ipc",
"--share=network",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--filesystem=host",
"--filesystem=xdg-config/GIMP",
"--filesystem=xdg-config/gtk-3.0",
"--filesystem=/tmp",
"--filesystem=xdg-run/gvfs",
"--filesystem=xdg-run/gvfsd",
"--talk-name=org.gtk.vfs",
"--talk-name=org.gtk.vfs.*",
"--talk-name=org.freedesktop.FileManager1"
],
"tags": [
"GTK+3",
"nightly"
],
"desktop-file-name-prefix": "(Nightly) ",
"cleanup": [
"/include",
"/lib/pkgconfig",
"/share/pkgconfig",
"/share/aclocal",
"/man",
"/share/man",
"/share/vala",
"*.la",
"*.a"
],
"modules": [
{
"name": "gexiv2",
"modules": [
{
"name": "exiv2",
"buildsystem": "cmake-ninja",
"builddir": true,
"cleanup": [
"/bin",
"/share"
],
"sources": [
{
"type": "archive",
"url": "https://exiv2.org/builds/exiv2-0.27.4-Source.tar.gz",
"sha256": "84366dba7c162af9a7603bcd6c16f40fe0e9af294ba2fd2f66ffffb9fbec904e",
"x-checker-data": {
"type": "anitya",
"project-id": 769,
"stable-only": true,
"url-template": "https://exiv2.org/builds/exiv2-$version-Source.tar.gz"
}
}
]
}
],
"buildsystem": "meson",
"config-opts": [
"-Dintrospection=false",
"-Dpython3=false",
"-Dvapi=false"
],
"sources": [
{
"type": "archive",
"url": "https://download.gnome.org/sources/gexiv2/0.14/gexiv2-0.14.0.tar.xz",
"sha256": "e58279a6ff20b6f64fa499615da5e9b57cf65ba7850b72fafdf17221a9d6d69e",
"x-checker-data": {
"type": "anitya",
"project-id": 1626,
"stable-only": true,
"url-template": "https://download.gnome.org/sources/gexiv2/$major.$minor/gexiv2-$version.tar.xz"
}
}
]
},
{
"name": "lcms2",
"config-opts": [
"--disable-static"
],
"cleanup": [
"/bin",
"/share"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/mm2/Little-CMS/releases/download/lcms2.12/lcms2-2.12.tar.gz",
"sha256": "18663985e864100455ac3e507625c438c3710354d85e5cbb7cd4043e11fe10f5",
"x-checker-data": {
"type": "anitya",
"project-id": 9815,
"stable-only": true,
"url-template": "https://github.com/mm2/Little-CMS/releases/download/lcms$version/lcms2-$version.tar.gz"
}
}
]
},
{
"name": "openexr",
"modules": [
{
"name": "ilmbase",
"subdir": "IlmBase",
"config-opts": [
"--disable-static"
],
"build-options": {
"cxxflags": "-std=c++14",
"env": {
"LDFLAGS": "-lpthread"
}
},
"sources": [
{
"type": "archive",
"url": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.7.tar.gz",
"sha256": "36ecb2290cba6fc92b2ec9357f8dc0e364b4f9a90d727bf9a57c84760695272d"
},
{
"type": "shell",
"commands": [
"cp -p /usr/share/automake-*/config.{sub,guess} ."
]
}
]
}
],
"subdir": "OpenEXR",
"config-opts": [
"--disable-static",
"--disable-ilmbasetest"
],
"cleanup": [
"/bin",
"/share/doc",
"/lib/libIlmImfUtil*"
],
"build-options": {
"cxxflags": "-std=c++14"
},
"sources": [
{
"type": "archive",
"url": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.7.tar.gz",
"sha256": "36ecb2290cba6fc92b2ec9357f8dc0e364b4f9a90d727bf9a57c84760695272d",
"x-checker-data": {
"type": "anitya",
"project-id": 13289,
"stable-only": true,
"url-template": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v$version.tar.gz"
}
},
{
"type": "patch",
"path": "patches/openexr-no-docs.patch"
},
{
"type": "shell",
"commands": [
"cp -p /usr/share/automake-*/config.{sub,guess} ."
]
}
]
},
{
"name": "poppler",
"modules": [
{
"name": "popplerdata",
"buildsystem": "cmake-ninja",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz",
"sha256": "2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c",
"x-checker-data": {
"type": "anitya",
"project-id": 3687,
"stable-only": true,
"url-template": "https://poppler.freedesktop.org/poppler-data-$version.tar.gz"
}
}
]
}
],
"config-opts": [
"-DENABLE_GOBJECT_INTROSPECTION=OFF",
"-DENABLE_CPP=OFF",
"-DOpenJPEG_DIR=/usr/lib64/openjpeg-2.3",
"-DENABLE_BOOST=OFF"
],
"cleanup": [
"/bin",
"/share"
],
"buildsystem": "cmake-ninja",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://poppler.freedesktop.org/poppler-21.10.0.tar.xz",
"sha256": "964b5b16290fbec3fae57c2a5bcdea49bb0736bd750c3a3711c47995c9efc394",
"x-checker-data": {
"type": "anitya",
"project-id": 3686,
"stable-only": true,
"url-template": "https://poppler.freedesktop.org/poppler-$version.tar.xz"
}
}
]
},
{
"name": "aalib",
"config-opts": [
"--disable-static"
],
"cleanup": [
"/bin",
"/info",
"/man"
],
"sources": [
{
"type": "archive",
"url": "https://src.fedoraproject.org/repo/pkgs/rpms/aalib/aalib-1.4rc5.tar.gz/9801095c42bba12edebd1902bcf0a990/aalib-1.4rc5.tar.gz",
"sha256": "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
},
{
"type": "shell",
"commands": [
"cp -p /usr/share/automake-*/config.{sub,guess} ."
]
}
]
},
{
"name": "libmng",
"config-opts": [
"--disable-static"
],
"cleanup": [
"/share"
],
"sources": [
{
"type": "archive",
"url": "https://src.fedoraproject.org/repo/pkgs/rpms/libmng/libmng-2.0.3.tar.gz/7e9a12ba2a99dff7e736902ea07383d4/libmng-2.0.3.tar.gz",
"sha256": "cf112a1fb02f5b1c0fce5cab11ea8243852c139e669c44014125874b14b7dfaa"
}
]
},
{
"name": "libwmf",
"config-opts": [
"--disable-static",
"--disable-dependency-tracking"
],
"cleanup": [
"/share/doc",
"/bin"
],
"sources": [
{
"type": "archive",
"url": "https://src.fedoraproject.org/repo/pkgs/rpms/libwmf/v0.2.12.tar.gz/sha512/9280851e560becc91546906b911e0c59a1abd690e10680f6d94a335d66aeaec5eb12ccf2214ee7af2a15729a7b5f8b906022822399b4e2bc12c75a2d75748cab/v0.2.12.tar.gz",
"sha512": "9280851e560becc91546906b911e0c59a1abd690e10680f6d94a335d66aeaec5eb12ccf2214ee7af2a15729a7b5f8b906022822399b4e2bc12c75a2d75748cab"
},
{
"type": "patch",
"path": "patches/libwmf-no-freetype-config.patch"
},
{
"type": "shell",
"commands": [
"cp -p /usr/share/automake-*/config.{sub,guess} .",
"aclocal",
"automake --add-missing",
"autoconf"
]
}
]
},
{
"name": "ghostscript",
"config-opts": [
"--disable-cups"
],
"make-args": [
"so"
],
"make-install-args": [
"soinstall"
],
"cleanup": [
"/bin",
"/share/man",
"/share/doc"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9550/ghostscript-9.55.0.tar.gz",
"sha256": "31e2064be67e15b478a8da007d96d6cd4d2bee253e5be220703a225f7f79a70b",
"x-checker-data": {
"type": "anitya",
"project-id": 1157,
"stable-only": true,
"url-template": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$major$minor$patch/ghostscript-$version.tar.gz"
}
},
{
"type": "shell",
"commands": [
"cp -p /usr/share/automake-*/config.{sub,guess} freetype/builds/unix/",
"cp -p /usr/share/automake-*/config.{sub,guess} ijs/",
"cp -p /usr/share/automake-*/config.{sub,guess} jpeg/",
"cp -p /usr/share/automake-*/config.{sub,guess} libpng/",
"cp -p /usr/share/automake-*/config.{sub,guess} lcms2mt/",
"cp -p /usr/share/automake-*/config.{sub,guess} tiff/config/",
"rm -rf libpng/pngread.c"
]
}
]
},
{
/* Copy from shared-modules to avoid submodules on dev repo. */
"name": "intltool",
"cleanup": [
"*"
],
"sources": [
{
"type": "archive",
"url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
"sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd",
"x-checker-data": {
"type": "anitya",
"project-id": 1385,
"stable-only": true,
"url-template": "https://launchpad.net/intltool/trunk/$version/+download/intltool-$version.tar.gz"
}
}
]
},
{
"name": "libmypaint",
"config-opts": [
"--disable-gegl",
"--disable-introspection"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/mypaint/libmypaint/releases/download/v1.6.1/libmypaint-1.6.1.tar.xz",
"sha256": "741754f293f6b7668f941506da07cd7725629a793108bb31633fb6c3eae5315f",
"x-checker-data": {
"type": "anitya",
"project-id": 12974,
"stable-only": true,
"url-template": "https://github.com/mypaint/libmypaint/releases/download/v$version/libmypaint-$version.tar.xz"
}
}
],
"modules": [
{
"name": "json-c",
"buildsystem": "cmake-ninja",
"sources": [
{
"type": "archive",
"url": "https://github.com/json-c/json-c/archive/json-c-0.15-20200726.tar.gz",
"sha256": "4ba9a090a42cf1e12b84c64e4464bb6fb893666841d5843cc5bef90774028882"
}
]
}
]
},
{
"name": "mypaint-brushes",
"sources": [
{
"type": "archive",
"url": "https://github.com/mypaint/mypaint-brushes/releases/download/v1.3.1/mypaint-brushes-1.3.1.tar.xz",
"sha256": "fef66ffc241b7c5cd29e9c518e933c739618cb51c4ed4d745bf648a1afc3fe70",
"x-checker-data": {
"type": "anitya",
"project-id": 17096,
"stable-only": true,
"url-template": "https://github.com/mypaint/mypaint-brushes/releases/download/v$version/mypaint-brushes-$version.tar.xz"
}
}
]
},
{
/* Shamelessly taken from org.octave.Octave manifest! */
"name": "SuiteSparse",
"no-autogen": true,
"make-args": [
"BLAS=-lopenblas",
"LAPACK=",
"library"
],
"make-install-args": [
"BLAS=-lopenblas",
"LAPACK=",
"INSTALL_LIB=/app/lib",
"INSTALL_INCLUDE=/app/include/suitesparse",
"library"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.10.1.tar.gz",
"sha256": "acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee",
"x-checker-data": {
"type": "anitya",
"project-id": 4908,
"stable-only": true,
"url-template": "https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$version.tar.gz"
}
},
{
"type": "patch",
"path": "patches/suitesparse-reduce-build.patch"
}
],
"modules": [
{
"name": "openblas",
"no-autogen": true,
"make-args": [
"DYNAMIC_ARCH=1",
"FC=gfortran",
"NO_CBLAS=1",
"NO_LAPACKE=1",
"USE_OPENMP=0"
],
"make-install-args": [
"PREFIX=/app"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/xianyi/OpenBLAS/archive/v0.3.18.tar.gz",
"sha256": "1632c1e8cca62d8bed064b37747e331a1796fc46f688626337362bf0d16aeadb",
"x-checker-data": {
"type": "anitya",
"project-id": 2540,
"stable-only": true,
"url-template": "https://github.com/xianyi/OpenBLAS/archive/v$version.tar.gz"
}
}
]
}
]
},
{
"name": "libheif",
"config-opts": [
"--disable-gdk-pixbuf"
],
"cleanup": [
"/bin",
"/share/thumbnailers"
],
"modules": [
{
"name": "libde265",
"config-opts": [
"--disable-sherlock265"
],
"cleanup": [
"/bin"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/strukturag/libde265/releases/download/v1.0.8/libde265-1.0.8.tar.gz",
"sha256": "24c791dd334fa521762320ff54f0febfd3c09fc978880a8c5fbc40a88f21d905",
"x-checker-data": {
"type": "anitya",
"project-id": 11239,
"stable-only": true,
"url-template": "https://github.com/strukturag/libde265/releases/download/v$version/libde265-$version.tar.gz"
}
}
]
},
{
"name": "libx265",
"buildsystem": "cmake",
"subdir": "source",
"config-opts": [
"-DEXTRA_LIB='libx265-10.a;libx265-12.a'",
"-DEXTRA_LINK_FLAGS=-L.",
"-DLINKED_10BIT=ON",
"-DLINKED_12BIT=ON"
],
"cleanup": [
"/bin"
],
"sources": [
{
"type": "archive",
"url": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz",
"sha256": "e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8",
"x-checker-data": {
"type": "anitya",
"project-id": 7275,
"stable-only": true,
"url-template": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_$version.tar.gz"
}
},
{
"type": "shell",
"commands": [
"ln -s ${FLATPAK_DEST}/lib/libx265-10.a",
"ln -s ${FLATPAK_DEST}/lib/libx265-12.a",
"rm -fr ${FLATPAK_DEST}/lib/libx265.so*"
]
}
],
"modules": [
{
"name": "libx265-10bpc",
"buildsystem": "cmake",
"subdir": "source",
"config-opts": [
"-DHIGH_BIT_DEPTH=ON",
"-DEXPORT_C_API=OFF",
"-DENABLE_SHARED=OFF",
"-DENABLE_CLI=OFF",
"-DENABLE_ASSEMBLY=OFF"
],
"sources": [
{
"type": "archive",
"url": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz",
"sha256": "e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8",
"x-checker-data": {
"type": "anitya",
"project-id": 7275,
"stable-only": true,
"url-template": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_$version.tar.gz"
}
}
],
"post-install": [
"mv ${FLATPAK_DEST}/lib/libx265.a ${FLATPAK_DEST}/lib/libx265-10.a"
]
},
{
"name": "libx265-12bpc",
"buildsystem": "cmake",
"subdir": "source",
"config-opts": [
"-DHIGH_BIT_DEPTH=ON",
"-DEXPORT_C_API=OFF",
"-DENABLE_SHARED=OFF",
"-DENABLE_CLI=OFF",
"-DENABLE_ASSEMBLY=OFF",
"-DMAIN12=ON"
],
"sources": [
{
"type": "archive",
"url": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz",
"sha256": "e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8",
"x-checker-data": {
"type": "anitya",
"project-id": 7275,
"stable-only": true,
"url-template": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_$version.tar.gz"
}
}
],
"post-install": [
"mv ${FLATPAK_DEST}/lib/libx265.a ${FLATPAK_DEST}/lib/libx265-12.a"
]
}
]
}
],
"sources": [
{
"url": "https://github.com/strukturag/libheif/releases/download/v1.12.0/libheif-1.12.0.tar.gz",
"sha256": "e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718",
"type": "archive",
"x-checker-data": {
"type": "anitya",
"project-id": 64439,
"stable-only": true,
"url-template": "https://github.com/strukturag/libheif/releases/download/v$version/libheif-$version.tar.gz"
}
}
]
},
{
"name": "libjxl",
"config-opts": [
"-DJPEGXL_ENABLE_PLUGINS=OFF",
"-DBUILD_TESTING=OFF",
"-DJPEGXL_WARNINGS_AS_ERRORS=OFF",
"-DJPEGXL_ENABLE_SJPEG=OFF",
"-DJPEGXL_ENABLE_BENCHMARK=OFF",
"-DJPEGXL_ENABLE_EXAMPLES=OFF",
"-DJPEGXL_ENABLE_MANPAGES=OFF",
"-DJPEGXL_ENABLE_SKCMS=ON",
"-DJPEGXL_ENABLE_JNI=OFF",
"-DJPEGXL_ENABLE_TCMALLOC=OFF",
"-DJPEGXL_ENABLE_TOOLS=OFF"
],
"buildsystem": "cmake-ninja",
"builddir": true,
"sources": [
{
"type": "git",
"url": "https://github.com/libjxl/libjxl.git",
"tag": "v0.6.1",
"commit": "a205468bc5d3a353fb15dae2398a101dff52f2d3"
}
]
},
{
"name": "luajit",
"no-autogen": true,
"cleanup": [
"/lib/*.a",
"/include",
"/lib/pkgconfig",
"/share/man"
],
"sources": [
{
"type": "archive",
"url": "https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz",
"sha256": "1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3",
"x-checker-data": {
"type": "anitya",
"project-id": 6444,
"stable-only": false,
"url-template": "https://luajit.org/download/LuaJIT-$version.tar.gz"
}
},
{
"type": "shell",
"commands": [
"sed -i 's|/usr/local|/app|' ./Makefile"
]
}
],
"post-install": [
"ln -s /app/bin/luajit-2.1.0-beta3 /app/bin/luajit"
]
},
{
"name": "lua-lgi",
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://github.com/pavouk/lgi.git",
"commit": "c21f35fccae87fd4e3625d4c878f584b7255d6f6"
}
]
},
{
"name": "xmu",
"sources": [
{
"type": "archive",
"url": "https://xorg.freedesktop.org/releases/individual/lib/libXmu-1.1.3.tar.bz2",
"sha256": "9c343225e7c3dc0904f2122b562278da5fed639b1b5e880d25111561bac5b731"
}
]
},
{
"name": "cairo",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"url": "https://gitlab.freedesktop.org/cairo/cairo/-/archive/1.17.4/cairo-1.17.4.tar.gz",
"sha256": "0a673c88f7c049b4555c1f152b11d9fe16d8523b62632d2d5c14e1868499ce9f",
"x-checker-data": {
"type": "anitya",
"project-id": 247,
"stable-only": true,
"url-template": "https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/cairo-$version.tar.gz"
}
},
{
"type": "patch",
"path": "../patches/cairo-mr114-gimp-issue-6210.patch"
},
{
"type": "patch",
"path": "../patches/cairo-mr245-issue325.patch"
}
]
},
{
"name": "babl",
"buildsystem": "meson",
"config-opts": [
"-Dwith-docs=false"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/babl.git",
"branch": "master"
}
]
},
{
"name": "gegl",
"buildsystem": "meson",
"config-opts": [
"-Ddocs=false",
"-Dworkshop=true"
],
"cleanup": [
"/bin"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gegl.git",
"branch": "master"
}
],
"modules": [
{
"name": "maxflow",
"buildsystem": "cmake-ninja",
"cleanup": [
"/bin"
],
"sources": [
{
"type": "git",
"url": "https://github.com/gerddie/maxflow.git",
"commit": "6ac148f164b9567ac81fbb4ebb36112f850c902b"
}
]
},
{
"name": "graphviz",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"url": "https://gitlab.com/graphviz/graphviz/-/archive/2.49.1/graphviz-2.49.1.tar.gz",
"sha256": "f62f644aa9b9c03cb14f0dc351a28525c055cd7951614c0b7efa6af66d4a8fb7",
"x-checker-data": {
"type": "anitya",
"project-id": 1249,
"stable-only": true,
"url-template": "https://gitlab.com/graphviz/graphviz/-/archive/$version/graphviz-$version.tar.gz"
}
}
],
"cleanup": [
"/bin/??",
"/bin/????*",
"/bin/fdp",
"/bin/nop",
"/lib/libgvpr*",
"/lib/liblab*",
"*.la",
"/lib/graphviz/libgvplugin_core*",
"/lib/graphviz/libgvplugin_g*",
"/lib/graphviz/libgvplugin_neato_layout*",
"/lib/graphviz/libgvplugin_poppler*",
"/lib/graphviz/libgvplugin_rsvg*",
"/lib/graphviz/libgvplugin_visio*",
"/lib/graphviz/libgvplugin_webp*",
"/lib/graphviz/libgvplugin_xlib*",
"/share"
]
}
]
},
{
"name": "gimp",
"config-opts": [
"-Dgi-docgen=disabled",
"-Dicc-directory=/run/host/usr/share/color/icc/",
"-Dbuild-id=org.gimp.GIMP.flatpak.nightly",
"-Dcheck-update=no"
],
"cleanup": [
"/bin/gimptool-2.99",
"/bin/gimp-console-2.99"
],
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gimp.git",
"branch": "master"
},
{
"type": "shell",
"commands": [
"xsltproc -o desktop/org.gimp.GIMP.appdata.xml.in.in build/flatpak/remove-future-appdata-release.xslt desktop/org.gimp.GIMP.appdata.xml.in.in"
]
}
]
}
]
}