[glade/wip/sthursfield/bst] Add BuildStream project files for building Glade



commit a042efd02ee6170875482439246a91f9a595c5c0
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Mon Jan 29 14:51:27 2018 +0000

    Add BuildStream project files for building Glade
    
    You should be able to use this as follows:
    
        cd bst
        bst build --track-all --track-save glade.bst
        bst shell glade.bst /usr/bin/glade

 bst/.gitignore                  |    1 +
 bst/elements/base-symlinks.bst  |    8 ++++++++
 bst/elements/glade.bst          |   20 ++++++++++++++++++++
 bst/elements/gnome-junction.bst |    9 +++++++++
 bst/elements/gnome-platform.bst |   23 +++++++++++++++++++++++
 bst/elements/gnome-sdk.bst      |   23 +++++++++++++++++++++++
 bst/files/symlinks/bin/bash     |    1 +
 bst/files/symlinks/bin/sh       |    1 +
 bst/files/symlinks/lib          |    1 +
 bst/keys/gnome-sdk.gpg          |  Bin 0 -> 629 bytes
 bst/project.conf                |   21 +++++++++++++++++++++
 11 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/bst/.gitignore b/bst/.gitignore
new file mode 100644
index 0000000..de356b5
--- /dev/null
+++ b/bst/.gitignore
@@ -0,0 +1 @@
+.bst/
diff --git a/bst/elements/base-symlinks.bst b/bst/elements/base-symlinks.bst
new file mode 100644
index 0000000..b625c91
--- /dev/null
+++ b/bst/elements/base-symlinks.bst
@@ -0,0 +1,8 @@
+kind: import
+
+description: |
+  Add symlinks required to use the GNOME SDK for building.
+
+sources:
+- kind: local
+  path: files/symlinks/
diff --git a/bst/elements/glade.bst b/bst/elements/glade.bst
new file mode 100644
index 0000000..4f45114
--- /dev/null
+++ b/bst/elements/glade.bst
@@ -0,0 +1,20 @@
+kind: autotools
+
+description: |
+  Build Glade from upstream source repo.
+
+depends:
+- filename: gnome-sdk.bst
+  type: build
+- filename: gnome-platform.bst
+  type: runtime
+- filename: base-symlinks.bst
+  type: all
+
+sources:
+- kind: git
+  url: git_gnome_org:glade
+  track: master
+
+variables:
+  conf-local: --disable-man-pages
diff --git a/bst/elements/gnome-junction.bst b/bst/elements/gnome-junction.bst
new file mode 100644
index 0000000..d4465e6
--- /dev/null
+++ b/bst/elements/gnome-junction.bst
@@ -0,0 +1,9 @@
+kind: junction
+
+description: |
+  Connect with the GNOME project's integration repo for the GNOME SDK.
+
+sources:
+- kind: git
+  url: https://gitlab.gnome.org/GNOME/gnome-build-meta
+  track: master
diff --git a/bst/elements/gnome-platform.bst b/bst/elements/gnome-platform.bst
new file mode 100644
index 0000000..7ca9b80
--- /dev/null
+++ b/bst/elements/gnome-platform.bst
@@ -0,0 +1,23 @@
+kind: import
+
+description: |
+  Import GNOME runtime
+
+sources:
+- kind: ostree
+  url: gnomesdk:repo/
+  gpg-key: keys/gnome-sdk.gpg
+  (?):
+  - arch == "x86_64":
+      track: runtime/org.gnome.Platform/x86_64/3.26
+      ref: 05052b2520aef1273b724c8f776ee1042975209d5a2e3fc4aa02cb1fad95a856
+  - arch == "i386":
+      track: runtime/org.gnome.Platform/i386/3.26
+  - arch == "arm":
+      track: runtime/org.gnome.Platform/arm/3.26
+  - arch == "aarch64":
+      track: runtime/org.gnome.Platform/aarch64/3.26
+
+config:
+  source: files
+  target: usr
diff --git a/bst/elements/gnome-sdk.bst b/bst/elements/gnome-sdk.bst
new file mode 100644
index 0000000..e463476
--- /dev/null
+++ b/bst/elements/gnome-sdk.bst
@@ -0,0 +1,23 @@
+kind: import
+
+description: |
+  Import GNOME SDK
+
+sources:
+- kind: ostree
+  url: gnomesdk:repo/
+  gpg-key: keys/gnome-sdk.gpg
+  (?):
+  - arch == "x86_64":
+      track: runtime/org.gnome.Sdk/x86_64/3.26
+      ref: ff23c4387890886f8fe6a2a1650efaab16a17e260cc06185aa161ea59ebfecb0
+  - arch == "i386":
+      track: runtime/org.gnome.Sdk/i386/3.26
+  - arch == "arm":
+      track: runtime/org.gnome.Sdk/arm/3.26
+  - arch == "aarch64":
+      track: runtime/org.gnome.Sdk/aarch64/3.26
+
+config:
+  source: files
+  target: usr
diff --git a/bst/files/symlinks/bin/bash b/bst/files/symlinks/bin/bash
new file mode 120000
index 0000000..8fb99ed
--- /dev/null
+++ b/bst/files/symlinks/bin/bash
@@ -0,0 +1 @@
+/usr/bin/bash
\ No newline at end of file
diff --git a/bst/files/symlinks/bin/sh b/bst/files/symlinks/bin/sh
new file mode 120000
index 0000000..1087cce
--- /dev/null
+++ b/bst/files/symlinks/bin/sh
@@ -0,0 +1 @@
+/usr/bin/sh
\ No newline at end of file
diff --git a/bst/files/symlinks/lib b/bst/files/symlinks/lib
new file mode 120000
index 0000000..2b723f5
--- /dev/null
+++ b/bst/files/symlinks/lib
@@ -0,0 +1 @@
+/usr/lib/
\ No newline at end of file
diff --git a/bst/keys/gnome-sdk.gpg b/bst/keys/gnome-sdk.gpg
new file mode 100644
index 0000000..8434b68
Binary files /dev/null and b/bst/keys/gnome-sdk.gpg differ
diff --git a/bst/project.conf b/bst/project.conf
new file mode 100644
index 0000000..0e3c75c
--- /dev/null
+++ b/bst/project.conf
@@ -0,0 +1,21 @@
+# BuildStream project to build and package Glade.
+
+name: glade
+
+element-path: elements
+
+options:
+  arch:
+    description: Machine architecture
+    type: arch
+    values:
+    - arm
+    - aarch64
+    - i386
+    - x86_64
+
+aliases:
+  git_gnome_org: https://git.gnome.org/browse/
+  gnomesdk: https://sdk.gnome.org/
+
+fail-on-overlap: false


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