[gnome-build-meta/abderrahim/flatpak-sdk: 11/15] sdk/os-release: import from gnome-sdk-images



commit aa916767ea89f968f276860dae6a6282ba9fabe7
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Mon Jul 2 18:00:46 2018 +0100

    sdk/os-release: import from gnome-sdk-images

 elements/sdk-platform.bst                          |  1 +
 elements/sdk/os-release.bst                        | 35 ++++++++++++++++++++++
 files/os-release/issue                             |  1 +
 files/os-release/issue.net                         |  1 +
 files/os-release/org.gnome.Platform.appdata.xml.in | 13 ++++++++
 files/os-release/org.gnome.Sdk.appdata.xml.in      | 13 ++++++++
 files/os-release/os-release                        |  4 +++
 7 files changed, 68 insertions(+)
---
diff --git a/elements/sdk-platform.bst b/elements/sdk-platform.bst
index 946b4a5..51f8911 100644
--- a/elements/sdk-platform.bst
+++ b/elements/sdk-platform.bst
@@ -42,6 +42,7 @@ depends:
 - sdk/libsecret.bst
 - sdk/libsoup.bst
 - sdk/mozjs60.bst
+- sdk/os-release.bst
 - sdk/pango.bst
 - sdk/pycairo.bst
 - sdk/pygobject.bst
diff --git a/elements/sdk/os-release.bst b/elements/sdk/os-release.bst
new file mode 100644
index 0000000..2b201da
--- /dev/null
+++ b/elements/sdk/os-release.bst
@@ -0,0 +1,35 @@
+kind: manual
+sources:
+- kind: local
+  path: files/os-release
+depends:
+- filename: sdk/appstream-glib.bst
+  type: build
+- filename: base.bst
+  junction: freedesktop-sdk.bst
+  type: build
+- filename: base-platform.bst
+  junction: freedesktop-sdk.bst
+  type: runtime
+config:
+  build-commands:
+    - |
+      for i in *.in; do
+        sed "s/@@SDK_BRANCH@@/%{branch}/g" "${i}" >"$(basename "${i}" .in)"
+      done
+
+  install-commands:
+    - |
+      mkdir -p "%{install-root}%{indep-libdir}"
+      install os-release "%{install-root}%{indep-libdir}"
+
+      mkdir -p "%{install-root}%{sysconfdir}"
+      install issue "%{install-root}%{sysconfdir}"
+      install issue.net "%{install-root}%{sysconfdir}"
+
+      mkdir -p "%{install-root}%{datadir}/appdata"
+      install org.gnome.Platform.appdata.xml "%{install-root}%{datadir}/appdata"
+      install org.gnome.Sdk.appdata.xml "%{install-root}%{datadir}/appdata"
+
+      appstream-compose --basename=org.gnome.Platform --prefix=%{install-root}%{prefix} --origin=flatpak 
org.gnome.Platform
+      appstream-compose --basename=org.gnome.Sdk --prefix=%{install-root}%{prefix} --origin=flatpak 
org.gnome.Sdk
diff --git a/files/os-release/issue b/files/os-release/issue
new file mode 100644
index 0000000..d704081
--- /dev/null
+++ b/files/os-release/issue
@@ -0,0 +1 @@
+Gnome Platform master \n \l
diff --git a/files/os-release/issue.net b/files/os-release/issue.net
new file mode 100644
index 0000000..d066e40
--- /dev/null
+++ b/files/os-release/issue.net
@@ -0,0 +1 @@
+Gnome Platform master %h
diff --git a/files/os-release/org.gnome.Platform.appdata.xml.in 
b/files/os-release/org.gnome.Platform.appdata.xml.in
new file mode 100644
index 0000000..a3cb2ce
--- /dev/null
+++ b/files/os-release/org.gnome.Platform.appdata.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2017 Richard Hughes <richard hughsie com> -->
+<component type="runtime">
+  <id>org.gnome.Platform</id>
+  <metadata_license>CC0</metadata_license>
+  <!-- FIXME -->
+  <project_license>GPL-2.0+</project_license>
+  <name>GNOME Application Platform version @@SDK_BRANCH@@</name>
+  <summary>Shared libraries used by GNOME applications</summary>
+  <url type="homepage">http://www.gnome.org/</url>
+  <project_group>GNOME</project_group>
+</component>
+
diff --git a/files/os-release/org.gnome.Sdk.appdata.xml.in b/files/os-release/org.gnome.Sdk.appdata.xml.in
new file mode 100644
index 0000000..562d828
--- /dev/null
+++ b/files/os-release/org.gnome.Sdk.appdata.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2017 Richard Hughes <richard hughsie com> -->
+<component type="runtime">
+  <id>org.gnome.Sdk</id>
+  <metadata_license>CC0</metadata_license>
+  <!-- FIXME -->
+  <project_license>GPL-2.0+</project_license>
+  <name>GNOME Software Development Kit version @@SDK_BRANCH@@</name>
+  <summary>Tools and headers for developing applications using the GNOME application platform</summary>
+  <url type="homepage">http://www.gnome.org/</url>
+  <project_group>GNOME</project_group>
+</component>
+
diff --git a/files/os-release/os-release b/files/os-release/os-release
new file mode 100644
index 0000000..24dad7d
--- /dev/null
+++ b/files/os-release/os-release
@@ -0,0 +1,4 @@
+NAME=GNOME
+VERSION="master (Flatpak runtime)"
+VERSION_ID=master
+ID=org.gnome.Platform


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