[hitori] build: Add build rules for making an xdg-app bundle



commit 1884bbd1c2bd1e581ef0209a8f5f7325eaafb1fa
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Nov 19 11:15:35 2015 +0000

    build: Add build rules for making an xdg-app bundle
    
    These are more like documentation than an actual recipe which is going
    to work in every situation.

 Makefile.am |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3631b07..3c041ce 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -197,4 +197,19 @@ $(srcdir)/ChangeLog:
        fi
 .PHONY: $(srcdir)/ChangeLog
 
+# xdg-app bundle
+org.gnome.Hitori.bundle:
+       $(MKDIR_P) $(abs_top_builddir)/xdg-app-build/hitori
+       $(MKDIR_P) $(abs_top_builddir)/xdg-app-repos/hitori
+       (cd $(top_srcdir) && \
+        xdg-app build-init $(abs_top_builddir)/xdg-app-build/hitori org.gnome.Hitori org.gnome.Sdk 
org.gnome.Platform 3.18 && \
+        xdg-app build $(abs_top_builddir)/xdg-app-build/hitori ./configure --prefix=/app && \
+        xdg-app build $(abs_top_builddir)/xdg-app-build/hitori make && \
+        xdg-app build $(abs_top_builddir)/xdg-app-build/hitori make install && \
+        xdg-app build-finish --command=hitori --socket=x11 --socket=session-bus --talk-name=ca.desrt.dconf 
$(abs_top_builddir)/xdg-app-build/hitori)
+       xdg-app build-export $(abs_top_builddir)/xdg-app-repos/hitori $(abs_top_builddir)/xdg-app-build/hitori
+       xdg-app repo-update $(abs_top_builddir)/xdg-app-repos/hitori
+
+.PHONY: org.gnome.Hitori.bundle
+
 -include $(top_srcdir)/git.mk


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