summaryrefslogtreecommitdiffstats
path: root/pkg/linux/flatpak/fr.handbrake.ghb.json
blob: c723a9f5ff358e866ff4d790745be84c6ef56899 (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
{
    "app-id": "fr.handbrake.ghb",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "1.6",
    "sdk": "org.freedesktop.Sdk",
    "command": "ghb",
    "finish-args": [
        "--share=ipc", "--socket=x11",
        "--socket=wayland",
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--talk-name=org.gtk.vfs.*",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
        "--env=PATH=/app/bin:/usr/bin:/app/extensions/bin",
        "--env=JAVA_HOME=/app/extensions/jre",
        "--env=GIO_EXTRA_MODULES=/app/lib/gio/modules",
        "--filesystem=host"
    ],
    "add-extensions": {
        "fr.handbrake.plugin": {
            "version": "1",
            "directory": "extensions",
            "add-ld-path": "lib",
            "merge-dirs": "lib;bin;share;jre",
            "subdirectories": true,
            "no-autodownload": true,
            "autodelete": true
        }
    },
    "modules": [
        {
            "name": "gvfs",
            "cleanup": [ "/libexec/*", "/share/dbus-1/services/*", "/share/gvfs/mounts" ],
            "config-opts": [ "--disable-hal", "--disable-gdu", "--disable-gcr", "--disable-obexftp",
                             "--disable-avahi", "--disable-documentation", "--disable-admin" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/gvfs/1.36/gvfs-1.36.1.tar.xz",
                    "sha256": "3840dff386c2c8a445337bea4ade0eb71339efaff8602767659fa2896792f026"
                }
            ]
        },
        {
            "name": "fribidi",
            "make-args": ["-j1"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.handbrake.fr/handbrake/contrib/fribidi-0.19.7.tar.gz",
                    "sha256": "3fc96fa9473bd31dcb5500bdf1aa78b337ba13eb8c301e7c28923fea982453a8"
                }
            ]
        },
        {
            "name": "libass",
            "config-opts": ["--enable-asm", "--enable-harfbuzz",
                            "--enable-fontconfig"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/libass/libass/releases/download/0.14.0/libass-0.14.0.tar.gz",
                    "sha256": "8d5a5c920b90b70a108007ffcd2289ac652c0e03fc88e6eecefa37df0f2e7fdf"
                }
            ]
        },
        {
            "name": "handbrake",
            "no-autogen": true,
            "config-opts": ["--flatpak", "--disable-gtk-update-checks"],
            "builddir": true,
            "post-install": ["install -d /app/extensions"],
            "sources": [
                {
                    "type": "archive",
                    "path": "handbrake.tar.bz2",
                    "strip-components": 1
                },
                {
                    "type": "archive",
                    "path": "download.tgz",
                    "strip-components": 0
                }
            ],
            "modules": [
                {
                    "name": "nasm",
                    "cleanup": ["*"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.xz",
                            "sha256": "8ac3235f49a6838ff7a8d7ef7c19a4430d0deecc0c2d3e3e237b5e9f53291757"
                        }
                    ]
                }
            ]
        }
    ]
}