-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.tvbrowser.TVBrowser.yml
63 lines (60 loc) · 2.63 KB
/
org.tvbrowser.TVBrowser.yml
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
app-id: org.tvbrowser.TVBrowser
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk11
command: tvbrowser
rename-icon: tvbrowser
rename-desktop-file: tvbrowser.desktop
rename-appdata-file: tvbrowser.appdata.xml
build-options:
env:
JAVA_HOME: /usr/lib/sdk/openjdk11/jvm/openjdk-11
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --persist=.config/tvbrowser
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk11/install.sh
- name: tvbrowser
buildsystem: simple
build-commands:
- ant/bin/ant runtime-linux -Dnewsplugin.url=file://$(pwd)/NewsPlugin.jar
post-install:
- install -Dm 755 tvbrowser.sh ${FLATPAK_DEST}/bin/tvbrowser
- install -Dm 755 deployment/linux/tvbrowser.appdata.xml ${FLATPAK_DEST}/share/appdata/tvbrowser.appdata.xml
- mkdir -p ${FLATPAK_DEST}/share/tvbrowser/
- cp -a runtime/tvbrowser_linux/* ${FLATPAK_DEST}/share/tvbrowser/
- chmod 755 ${FLATPAK_DEST}/share/tvbrowser/tvbrowser.sh
- install -Dm 755 tvbrowser.desktop ${FLATPAK_DEST}/share/applications/tvbrowser.desktop
- install -Dm 644 src/imgs/tvbrowser16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/tvbrowser.png
- install -Dm 644 src/imgs/tvbrowser32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/tvbrowser.png
- install -Dm 644 src/imgs/tvbrowser48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/tvbrowser.png
- install -Dm 644 src/imgs/tvbrowser128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/tvbrowser.png
sources:
- type: archive
url: https://downloads.sourceforge.net/project/tvbrowser/TV-Browser%20Releases%20%28Java%2011%20and%20higher%29/4.2.7/tvbrowser_4.2.7_src.zip
sha256: f5e32b4c4a8a0efec238a2dbcad3531dbe03cb9947b8ddd0c9284ba5e2b1bfaf
- type: patch
path: appdata.patch
- type: archive
url: https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.11-bin.tar.xz
sha256: baa049855cdecbefa62539555824058e52412e5ebe8f102e1db944cb762e06d9
dest: ant
- type: file
url: https://www.tvbrowser.org/data/uploads/1372016422809_543/NewsPlugin.jar
sha256: 3d93a44eb4b74d501bed9069c0dcad65a99b88a35d9a13da117d8ecf21420754
- type: script
dest-filename: tvbrowser.sh
commands:
- export JAVA_HOME=/app/jre
- export PATH=/app/jre/bin:$PATH
- cd /app/share/tvbrowser
- exec ./tvbrowser.sh -Dswing.aatext=TRUE -Dawt.useSystemAAFontSettings=on "$@"
- type: file
path: tvbrowser.desktop