Commit 6f7faa35 authored by Valentin David's avatar Valentin David

Add flatpak packages

parent 9fc6b06c
kind: compose
depends:
- filename: firefox.bst
type: build
config:
include-orphans: False
include:
- debug
kind: compose
depends:
- filename: firefox.bst
type: build
- filename: flatpak/prepare-extensions.bst
type: build
config:
include-orphans: True
exclude:
- devel
- debug
kind: manual
depends:
- filename: firefox.bst
type: build
config:
install-commands:
- |
for extension in "%{libdir}"/firefox/browser/extensions/langpack-*@firefox.mozilla.org.xpi; do
locale="$(echo "${extension}" | sed "s,.*/langpack-\(.*\)@firefox.mozilla.org.xpi$,\1,")"
mkdir -p "%{install-root}/${locale}/extensions"
cp "${extension}" "%{install-root}/${locale}/extensions/"
done
kind: flatpak_image
depends:
- filename: flatpak/flatpak-debug-image.bst
type: build
config:
directory: '%{debugdir}'
metadata:
Runtime:
name: org.mozilla.Firefox.Debug
ExtensionOf:
ref: org.mozilla.Firefox/%{gcc_arch}/%{branch}
kind: flatpak_image
depends:
- filename: flatpak/locales.bst
type: build
config:
directory: '/'
metadata:
Runtime:
name: org.mozilla.Firefox.Locale
ExtensionOf:
ref: org.mozilla.Firefox/%{gcc_arch}/%{branch}
kind: flatpak_image
depends:
- filename: flatpak/flatpak-image.bst
type: build
config:
directory: '%{prefix}'
metadata:
Application:
name: org.mozilla.Firefox
runtime: org.freedesktop.Platform/%{gcc_arch}/%{branch}
sdk: org.freedesktop.Sdk/%{gcc_arch}/%{branch}
command: firefox
Context:
shared: "network;ipc;"
sockets: "x11;wayland;pulsaudio;"
devices: "dri;"
persistent: ".mozilla"
filesystems: "xdg-download"
'Extension org.mozilla.Firefox.Debug':
directory: lib/debug
'Extension org.mozilla.Firefox.Locale':
directory: lib/flatpak-firefox-extensions
local-subset: "true"
merge-dirs: "extensions"
'Extension org.mozilla.Firefox.Extension':
directory: lib/flatpak-firefox-extensions
subdirectories: "true"
merge-dirs: "extensions"
kind: stack
depends:
- firefox.bst
public:
bst:
integration-commands:
- |
mkdir -p "%{libdir}"/flatpak-firefox-extensions
mv "%{libdir}"/firefox/browser/extensions "%{libdir}"/flatpak-firefox-extensions/
ln -s "%{libdir}"/flatpak-firefox-extensions/extensions "%{libdir}"/firefox/browser/extensions
kind: flatpak_repo
depends:
- filename: deploy-tools/flatpak.bst
junction: freedesktop-sdk.bst
type: build
- filename: flatpak/org.mozilla.Firefox.bst
type: build
- filename: flatpak/org.mozilla.Firefox.Debug.bst
type: build
- filename: flatpak/org.mozilla.Firefox.Locale.bst
type: build
config:
arch: '%{gcc_arch}'
environment:
- deploy-tools/flatpak.bst
......@@ -3,6 +3,7 @@ name: firefox
element-path: elements
variables:
branch: stable
prefix: /app
#sysconfdir: "%{prefix}/etc"
host-triplet: "%{triplet}"
......@@ -38,6 +39,13 @@ plugins:
path: plugins/sources
sources:
crate: 0
- origin: pip
package-name: buildstream-external
elements:
flatpak_image: 0
flatpak_repo: 0
# This file is taken from GNOME-build-meta
shell:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment