[gimp] build: workaround for broken cleanup of flatpak.



commit 789cb3ce6e8f9d320599b9ae6db7f673f9ab83e8
Author: Jehan <jehan girinstud io>
Date:   Fri Oct 6 16:40:26 2017 +0200

    build: workaround for broken cleanup of flatpak.
    
    For some reason, the "cleanup" tag won't delete the files produced by
    the BaseApp inside the main GIMP manifest (I still need them for build,
    but want to delete them for runtime).
    This is a workaround to delete them with a few command lines for now.
    See: https://github.com/flatpak/flatpak/issues/1082

 build/flatpak/org.gimp.GIMP-dev.json     |    8 ++++++++
 build/flatpak/org.gimp.GIMP-nightly.json |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/build/flatpak/org.gimp.GIMP-dev.json b/build/flatpak/org.gimp.GIMP-dev.json
index c71d0f4..87c5b23 100644
--- a/build/flatpak/org.gimp.GIMP-dev.json
+++ b/build/flatpak/org.gimp.GIMP-dev.json
@@ -63,6 +63,14 @@
                     "branch": "GIMP_2_9_6",
                     "commit": "5afea2f6d3ce5160362df930883d62fb9e0728c6"
                 }
+            ],
+           "post-install": [
+                "rm -fr /app/include /app/lib/pkgconfig /app/share/pkgconfig",
+                "rm -fr /app/share/gtk-doc/ /app/share/man/",
+                "rm -fr /app/lib/*.la /app/lib/*.a",
+                "rm -fr /app/share/ghostscript/9.20/doc/",
+                "rm -fr /app/bin/wmf* /app/bin/libwmf-*",
+                "rm -fr /app/bin/pygtk* /app/bin/pygobject* /app/bin/pygobject-codegen-2.0"
             ]
         }
     ]
diff --git a/build/flatpak/org.gimp.GIMP-nightly.json b/build/flatpak/org.gimp.GIMP-nightly.json
index 33198eb..be57d4d 100644
--- a/build/flatpak/org.gimp.GIMP-nightly.json
+++ b/build/flatpak/org.gimp.GIMP-nightly.json
@@ -72,6 +72,14 @@
                     "url": "git://git.gnome.org/gimp",
                     "branch": "master"
                 }
+            ],
+           "post-install": [
+                "rm -fr /app/include /app/lib/pkgconfig /app/share/pkgconfig",
+                "rm -fr /app/share/gtk-doc/ /app/share/man/",
+                "rm -fr /app/lib/*.la /app/lib/*.a",
+                "rm -fr /app/share/ghostscript/9.20/doc/",
+                "rm -fr /app/bin/wmf* /app/bin/libwmf-*",
+                "rm -fr /app/bin/pygtk* /app/bin/pygobject* /app/bin/pygobject-codegen-2.0"
             ]
         }
     ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]