[gnome-sdk-images/gnome-3-26] Support building from flathub



commit 74b74b377d9209e86292e83f31ef4973b61bc1a9
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Feb 13 17:01:27 2018 +0100

    Support building from flathub

 Makefile     |    3 ++-
 build.sh     |    9 +++++++++
 flathub.json |    3 +++
 3 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index a6c83b6..230acc2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 # Override the arch with `make ARCH=i386`
 ARCH   ?= $(shell flatpak --default-arch)
 REPO   ?= repo
+FB_ARGS ?=
 
 # SDK Versions setup here
 #
@@ -28,7 +29,7 @@ all: ${REPO} $(patsubst %,%.in,$(SUBST_FILES))
        $(call subst-metadata)
        flatpak-builder --force-clean --require-changes --repo=${REPO} --arch=${ARCH} \
                         --subject="build of org.gnome.Sdk, `date`" \
-                        ${EXPORT_ARGS} sdk org.gnome.Sdk.json
+                        ${EXPORT_ARGS} ${FB_ARGS} sdk org.gnome.Sdk.json
 
 ${REPO}:
        ostree  init --mode=archive-z2 --repo=${REPO}
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..d5ba983
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+ARCH=$1
+REPO=$2
+EXPORT_ARGS=$3
+FB_ARGS=$4
+SUBJECT=${5:-"org.freedesktop.Platform.GL.nvidia `git rev-parse HEAD`"}
+
+make ARCH="${ARCH}" REPO="${REPO}" EXPORT_ARGS="${EXPORT_ARGS}" FB_ARGS="${FB_ARGS}"
diff --git a/flathub.json b/flathub.json
new file mode 100644
index 0000000..9650911
--- /dev/null
+++ b/flathub.json
@@ -0,0 +1,3 @@
+{
+    "skip-appstream-check": true
+}


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