summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build-aux/flatpak/org.gnome.Nautilus.json127
-rw-r--r--build-aux/flatpak/org.gnome.Nautilus.yml89
-rw-r--r--build-aux/flatpak/org.gnome.NautilusMaster.yml88
-rwxr-xr-xbuild-aux/meson/postinstall.py27
4 files changed, 331 insertions, 0 deletions
diff --git a/build-aux/flatpak/org.gnome.Nautilus.json b/build-aux/flatpak/org.gnome.Nautilus.json
new file mode 100644
index 0000000..8956d6b
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.Nautilus.json
@@ -0,0 +1,127 @@
+{
+ "app-id": "org.gnome.NautilusDevel",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "master",
+ "sdk": "org.gnome.Sdk",
+ "command": "nautilus",
+ "tags": [
+ "devel",
+ "development",
+ "nightly"
+ ],
+ "finish-args": [
+ "--share=ipc",
+ "--socket=x11",
+ "--socket=wayland",
+ "--talk-name=org.gnome.OnlineAccounts",
+ "--filesystem=host",
+ "--talk-name=org.gtk.vfs",
+ "--talk-name=org.gtk.vfs.*",
+ "--share=network",
+ "--filesystem=xdg-run/dconf",
+ "--filesystem=~/.config/dconf:ro",
+ "--talk-name=ca.desrt.dconf",
+ "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+ "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:FileSystem;tracker:Documents"
+ ],
+ "modules": [
+ {
+ "name": "exiv2",
+ "config-opts": [
+ "-DCMAKE_INSTALL_PREFIX=/app",
+ "-DCMAKE_INSTALL_LIBDIR=/app/lib"
+ ],
+ "buildsystem": "cmake-ninja",
+ "sources": [
+ {
+ "type": "archive",
+ "url": "https://github.com/Exiv2/exiv2/archive/v0.26.tar.gz",
+ "sha256": "51cffa8d19d67e1da6c1d0f570a75b8f6c814113367318c2c0407691888c5f01"
+ }
+ ]
+ },
+ {
+ "name": "gexiv2",
+ "buildsystem": "meson",
+ "builddir": true,
+ "config-opts": [
+ "--libdir=/app/lib",
+ "-Ddisable-introspection=True"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gexiv2.git",
+ "tag": "gexiv2-0.10.10"
+ }
+ ]
+ },
+ {
+ "name": "tracker-miners",
+ "buildsystem": "meson",
+ "cleanup": [
+ "/etc",
+ "/libexec/tracker-3",
+ "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Extract.service",
+ "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.service",
+ "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.Control.service"
+ ],
+ "config-opts": [
+ "-Dextract=true",
+ "-Dgeneric_media_extractor=none",
+ "-Dman=false",
+ "-Dminer_fs=true",
+ "-Dminer_rss=false",
+ "-Dsystemd_user_services=false",
+ "-Dwriteback=false"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/tracker-miners.git",
+ "branch": "master"
+ }
+ ]
+ },
+ {
+ "name": "gnome-desktop",
+ "buildsystem": "meson",
+ "config-opts": [
+ "-Ddebug_tools=false",
+ "-Ddesktop_docs=false",
+ "-Dudev=disabled"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gnome-desktop.git"
+ }
+ ]
+ },
+ {
+ "name": "gnome-autoar",
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/gnome-autoar.git"
+ }
+ ]
+ },
+ {
+ "buildsystem": "meson",
+ "builddir": true,
+ "name": "nautilus",
+ "config-opts": [
+ "--libdir=/app/lib",
+ "-Dprofile=Devel",
+ "-Dtests=all"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://gitlab.gnome.org/GNOME/nautilus.git"
+ }
+ ]
+ }
+ ]
+}
diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml
new file mode 100644
index 0000000..7add949
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.Nautilus.yml
@@ -0,0 +1,89 @@
+---
+app-id: org.gnome.NautilusDevel
+runtime: org.gnome.Platform
+runtime-version: "master"
+sdk: org.gnome.Sdk
+command: nautilus
+tags:
+- devel
+- development
+- nightly
+finish-args:
+- "--share=ipc"
+- "--socket=x11"
+- "--socket=wayland"
+- "--talk-name=org.gnome.OnlineAccounts"
+- "--filesystem=host"
+- "--talk-name=org.gtk.vfs"
+- "--talk-name=org.gtk.vfs.*"
+- "--share=network"
+- "--filesystem=xdg-run/dconf"
+- "--filesystem=~/.config/dconf:ro"
+- "--talk-name=ca.desrt.dconf"
+- "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+# Access to host Tracker Miners
+- "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:FileSystem;tracker:Documents"
+modules:
+- name: exiv2
+ config-opts:
+ - "-DCMAKE_INSTALL_PREFIX=/app"
+ - "-DCMAKE_INSTALL_LIBDIR=/app/lib"
+ buildsystem: cmake-ninja
+ sources:
+ - type: archive
+ url: https://github.com/Exiv2/exiv2/archive/v0.26.tar.gz
+ sha256: 51cffa8d19d67e1da6c1d0f570a75b8f6c814113367318c2c0407691888c5f01
+- name: gexiv2
+ buildsystem: meson
+ builddir: true
+ config-opts:
+ - "--libdir=/app/lib"
+ - "-Ddisable-introspection=True"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gexiv2.git
+ tag: gexiv2-0.10.10
+- name: tracker-miners
+ buildsystem: meson
+ cleanup:
+ - "/etc"
+ - "/libexec/tracker-3"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Extract.service"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.service"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.Control.service"
+ config-opts:
+ - "-Dextract=true"
+ - "-Dgeneric_media_extractor=none"
+ - "-Dman=false"
+ - "-Dminer_fs=true"
+ - "-Dminer_rss=false"
+ - "-Dsystemd_user_services=false"
+ - "-Dwriteback=false"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/tracker-miners.git
+ branch: master
+- name: gnome-desktop
+ buildsystem: meson
+ config-opts:
+ - "-Ddebug_tools=false"
+ - "-Ddesktop_docs=false"
+ - "-Dudev=disabled"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gnome-desktop.git
+- name: gnome-autoar
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gnome-autoar.git
+- buildsystem: meson
+ builddir: true
+ name: nautilus
+ config-opts:
+ - "--libdir=/app/lib"
+ - "-Dprofile=Devel"
+ - "-Dtests=all"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/nautilus.git
+
diff --git a/build-aux/flatpak/org.gnome.NautilusMaster.yml b/build-aux/flatpak/org.gnome.NautilusMaster.yml
new file mode 100644
index 0000000..b467e6c
--- /dev/null
+++ b/build-aux/flatpak/org.gnome.NautilusMaster.yml
@@ -0,0 +1,88 @@
+---
+app-id: org.gnome.NautilusDevel
+runtime: org.gnome.Platform
+runtime-version: master
+sdk: org.gnome.Sdk
+command: nautilus
+tags:
+- devel
+- development
+- nightly
+finish-args:
+- "--share=ipc"
+- "--socket=x11"
+- "--socket=wayland"
+- "--talk-name=org.gnome.OnlineAccounts"
+- "--filesystem=host"
+- "--talk-name=org.gtk.vfs"
+- "--talk-name=org.gtk.vfs.*"
+- "--share=network"
+- "--filesystem=xdg-run/dconf"
+- "--filesystem=~/.config/dconf:ro"
+- "--talk-name=ca.desrt.dconf"
+- "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+# Access to host Tracker Miners
+- "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:FileSystem;tracker:Documents"
+modules:
+- name: exiv2
+ config-opts:
+ - "-DCMAKE_INSTALL_PREFIX=/app"
+ - "-DCMAKE_INSTALL_LIBDIR=/app/lib"
+ buildsystem: cmake-ninja
+ sources:
+ - type: archive
+ url: https://github.com/Exiv2/exiv2/archive/v0.26.tar.gz
+ sha256: 51cffa8d19d67e1da6c1d0f570a75b8f6c814113367318c2c0407691888c5f01
+- name: gexiv2
+ buildsystem: meson
+ builddir: true
+ config-opts:
+ - "--libdir=/app/lib"
+ - "-Dintrospection=false"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gexiv2.git
+- name: tracker-miners
+ buildsystem: meson
+ cleanup:
+ - "/etc"
+ - "/libexec/tracker-3"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Extract.service"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.service"
+ - "/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.Control.service"
+ config-opts:
+ - "-Dextract=true"
+ - "-Dgeneric_media_extractor=none"
+ - "-Dman=false"
+ - "-Dminer_fs=true"
+ - "-Dminer_rss=false"
+ - "-Dsystemd_user_services=false"
+ - "-Dwriteback=false"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/tracker-miners.git
+ branch: master
+- name: gnome-desktop
+ buildsystem: meson
+ config-opts:
+ - "-Ddebug_tools=false"
+ - "-Ddesktop_docs=false"
+ - "-Dudev=disabled"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gnome-desktop.git
+- name: gnome-autoar
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/gnome-autoar.git
+- buildsystem: meson
+ builddir: true
+ name: nautilus
+ config-opts:
+ - "--libdir=/app/lib"
+ - "-Dprofile=Devel"
+ - "-Dtests=all"
+ sources:
+ - type: git
+ url: https://gitlab.gnome.org/GNOME/nautilus.git
+
diff --git a/build-aux/meson/postinstall.py b/build-aux/meson/postinstall.py
new file mode 100755
index 0000000..81afb18
--- /dev/null
+++ b/build-aux/meson/postinstall.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+
+prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local')
+datadir = os.path.join(prefix, 'share')
+
+# Packaging tools define DESTDIR and this isn't needed for them
+if 'DESTDIR' not in os.environ:
+ print('Updating icon cache...')
+ icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor')
+ if not os.path.exists(icon_cache_dir):
+ os.makedirs(icon_cache_dir)
+ subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir])
+
+ print('Updating desktop database...')
+ desktop_database_dir = os.path.join(datadir, 'applications')
+ if not os.path.exists(desktop_database_dir):
+ os.makedirs(desktop_database_dir)
+ subprocess.call(['update-desktop-database', '-q', desktop_database_dir])
+
+ print('Compiling GSettings schemas...')
+ schemas_dir = os.path.join(datadir, 'glib-2.0', 'schemas')
+ if not os.path.exists(schemas_dir):
+ os.makedirs(schemas_dir)
+ subprocess.call(['glib-compile-schemas', schemas_dir])