summaryrefslogtreecommitdiff
path: root/flatpak/org.gnome.Shotwell.json
blob: 47037c7d2341d4d2a07c28719c5f497653ffb0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
    "app-id": "org.gnome.Shotwell",
    "runtime": "org.gnome.Platform",
    "runtime-version": "41",
    "branch": "stable",
    "sdk": "org.gnome.Sdk",
    "command" : "shotwell",
    "rename-desktop-file" : "shotwell.desktop",
    "rename-icon" : "shotwell",
    "rename-appdata-file" : "shotwell.appdata.xml",
    "finish-args": [
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--filesystem=xdg-run/dconf",
        "--filesystem=/media",
        "--filesystem=/run/media",
        "--filesystem=xdg-download",
        "--filesystem=xdg-pictures",
        "--share=ipc",
        "--share=network",
        "--device=all",
        "--socket=wayland",
        "--socket=x11",
        "--talk-name=ca.desrt.dconf",
        "--talk-name=org.freedesktop.FileManager1",
        "--talk-name=org.gnome.SettingsDaemon",
        "--talk-name=org.gtk.vfs",
        "--talk-name=org.gtk.vfs.*",
        "--env=GSETTINGS_BACKEND=dconf"
    ],
    "cleanup" : [
        "/include",
        "/lib/pkconfig",
        "/share/pkgconfig",
        "/share/gtk-doc",
        "/share/man",
        "/share/vala",
        "/lib/girepository",
        "*.la",
        "*.a"
    ],
    "modules" : [
        {
            "name": "libusb",
            "sources" : [
                {
                "type" : "archive",
                    "url" : "https://github.com/libusb/libusb/archive/v1.0.24.tar.gz",
                    "sha256" : "b7724c272dfc5713dce88ff717efd60f021ca5b7c8e30f08ebb2c42d2eea08ae"
                }
            ],
            "config-opts" : ["--disable-udev"]
        },
        {
            "name": "libghoto2",
            "cleanup" : ["/bin", "/lib/udev", "/share/doc"],
            "sources" : [
                {
                    "type" : "archive",
                    "url" : "https://github.com/gphoto/libgphoto2/releases/download/v2.5.27/libgphoto2-2.5.27.tar.xz",
                    "sha256" : "a7253bd18c6ef65352150ac36a668f883a5ad2634eb6455b3ca9aa6ac98d0073",
                    "dest-filename" : "libgphoto2-2.5.27.tar.xz"
                }
            ],
            "config-opts" : ["--disable-introspection", "--disable-docs"]
        },
        {
            "name": "liboauth",
            "config-opts": [ "--enable-nss" ],
            "sources": [
                {
                    "type": "archive",
                    "url" : "https://sourceforge.net/projects/liboauth/files/liboauth-1.0.3.tar.gz/download",
                    "sha256" : "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f",
                    "dest-filename" : "liboauth-1.0.3.tar.gz"
                }
            ]
        },
        {
            "name": "libgdata",
            "buildsystem" : "meson",
            "cleanup": ["/share/gtk-doc"],
            "config-opts": [ "-Dintrospection=false", "-Dalways_build_tests=false", "-Dgoa=disabled", "-Dgtk_doc=false"],
                "sources": [
                    {
                        "type": "archive",
                        "url": "https://download.gnome.org/sources/libgdata/0.17/libgdata-0.17.13.tar.xz",
                        "sha256": "eab9ef792c3c2b9ece19d45aea15225aba8df2521bc12785b1b2d3318d8c472e"
                    }
                ]
        },
        {
            "name": "exiv2",
            "cleanup": [ "/bin" ],
            "buildsystem": "cmake-ninja",
            "config-opts" : [
                "-DCMAKE_BUILD_TYPE=Release",
                "-DEXIV2_BUILD_EXIV2_COMMAND=OFF",
                "-DEXIV2_BUILD_SAMPLES=OFF"
            ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/Exiv2/exiv2/",
                    "commit" : "d3f7e92240a5e8bb827846c6094f46f9c7b53585"
                }
            ]
        },
        {
            "name": "gexiv2",
            "buildsystem" : "meson",
            "cleanup" : ["/lib/girepository-1.0", "/share/gir-1.0"],
            "config-opts" : ["-Dpython2_girdir=no", "-Dpython3_girdir=no"],
            "build-options" : {
                "env": {
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
                }
            },
            "sources": [
                {
                    "type": "git",
                    "url": "https://gitlab.gnome.org/GNOME/gexiv2.git/",
                    "commit" : "e4d65b31cd77f28ef248117e161de9d8cc31d712"
                }
            ]
        },
        {
            "name": "libraw",
            "config-opts": [ "--disable-examples", "--disable-static" ],
            "cleanup": [ "/share/doc" ],
            "sources": [
                {
                    "type": "archive",
                    "url" : "https://www.libraw.org/data/LibRaw-0.20.0.tar.gz",
                    "sha256" : "1f0a383da2ce9f409087facd28261decbf6be72cc90c78cd003b0766e4d694a3"
                },
                {
                    "type": "patch",
                    "path": "libraw-pkgconfig.patch"
                }
            ]
        },
        {
            "name": "shotwell",
            "buildsystem": "meson",
            "config-opts" : ["-Dudev=false", "-Dinstall-apport-hook=false", "-Dface-detection=false", "-Dfatal_warnings=false"],
            "sources" : [
                {
                    "type": "git",
                    "url" : "https://gitlab.gnome.org/GNOME/shotwell.git/",
                    "commit" : "382ac43b6b5fb688bf43a03601e48abd05925b89"
                }
            ],
            "post-install" : [
                "mv /app/share/applications/shotwell-viewer.desktop /app/share/applications/org.gnome.Shotwell.Viewer.desktop"
            ]
        }
    ]
}