forked from flathub/com.makemkv.MakeMKV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.makemkv.MakeMKV.yaml
110 lines (110 loc) · 3.62 KB
/
com.makemkv.MakeMKV.yaml
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
app-id: com.makemkv.MakeMKV
runtime: org.kde.Platform
runtime-version: 5.15-23.08
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk8
finish-args:
- --filesystem=host
# X11 access
- --socket=x11
- --share=ipc
# Network access
- --share=network
# For optical drive access
- --device=all
- --env=JAVA_HOME=/app/jre
command: makemkv
build-options:
append-path: /usr/lib/sdk/openjdk8/bin
rename-desktop-file: makemkv.desktop
rename-icon: makemkv
cleanup:
- /include
- /lib/pkgconfig
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk8/install.sh
- name: x264
config-opts:
- --disable-cli
- --enable-shared
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
commit: baee400fa9ced6f5481a728138fed6e867b0ff7f
- name: ffmpeg
config-opts:
- --enable-gpl
- --disable-static
- --enable-shared
- --disable-doc
- --disable-ffplay
- --disable-ffprobe
- --enable-libopus
- --enable-libvpx
- --enable-libx264
cleanup:
- /share/ffmpeg/examples
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-6.0.1.tar.xz
sha256: 9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623
x-checker-data:
type: anitya
project-id: 5405
stable-only: true
url-template: https://ffmpeg.org/releases/ffmpeg-$version.tar.xz
- name: openssl
buildsystem: simple
build-commands:
- "./config --prefix=/app --openssldir=/app/ssl shared zlib"
- make -j $FLATPAK_BUILDER_N_JOBS
- make install
sources:
- type: archive
url: https://www.openssl.org/source/openssl-1.1.1w.tar.gz
sha256: cf3098950cb4d853ad95c0841f1f9c6d3dc102dccfcacd521d93925208b76ac8
- name: makemkv-oss
buildsystem: autotools
build-options:
cflags: -D__GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D __STDC_FORMAT_MACROS
config-opts:
- --enable-allcodecs
make-install-args:
# really just to avoid call to ldconfig
- DESTDIR=/
post-install:
- install -Dp -m 644 com.makemkv.MakeMKV.appdata.xml --target-directory=/app/share/appdata
- install -Dp -m 644 License.txt --target-directory=/app/share/licenses/com.makemkv.MakeMKV
sources:
- type: archive
url: https://www.makemkv.com/download/makemkv-oss-1.17.5.tar.gz
sha256: fc2f4b0dc53117ab49927d9a415fa73082d1a4ae47df0c4e30cc4710c4c2fc22
x-checker-data:
type: html
url: https://www.makemkv.com/download
version-pattern: MakeMKV v([\d\.]*)
url-template: https://www.makemkv.com/download/makemkv-oss-$version.tar.gz
- type: file
path: com.makemkv.MakeMKV.appdata.xml
- name: makemkv-bin
buildsystem: simple
build-commands:
# TODO: put eula in appstream data once it supports it
# NOTE: author allows redistribution as long as eula is referenced in package description
- mkdir -p tmp
- echo accepted > tmp/eula_accepted
- make install DESTDIR=/ PREFIX=/app
- install -Dp -m 644 src/eula_en_linux.txt --target-directory=/app/share/licenses/com.makemkv.MakeMKV
sources:
- type: archive
url: https://www.makemkv.com/download/makemkv-bin-1.17.5.tar.gz
sha256: cb009c31f69601e2f66e315925a09ad175bad041f27c5096d7b06dd5004df04f
x-checker-data:
type: html
url: https://www.makemkv.com/download
version-pattern: MakeMKV v([\d\.]*)
url-template: https://www.makemkv.com/download/makemkv-bin-$version.tar.gz