-
Notifications
You must be signed in to change notification settings - Fork 4
/
com.cisco.PacketTracer-71.json
109 lines (107 loc) · 3.17 KB
/
com.cisco.PacketTracer-71.json
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
{
"app-id": "com.cisco.PacketTracer-71",
"runtime": "org.freedesktop.Platform",
"runtime-version": "18.08",
"sdk": "org.freedesktop.Sdk",
"command": "PacketTracer7.sh",
"separate-locales": false,
"cleanup": [ "/include", "*.la", "*.a" ],
"desktop-file-name-suffix": " 7.1.x",
"finish-args": [
"--share=ipc",
"--share=network",
"--socket=x11",
"--socket=pulseaudio",
"--filesystem=~/Packet Tracer 7.1:create"
],
"modules": [
{
"name": "PT-7.1",
"buildsystem": "simple",
"build-commands": [
"cp -r . /app"
],
"sources": [
{
"only-arches": [ "x86_64" ],
"type": "file",
"path": "Packet Tracer 7.1.1 for Linux 64 bit.tar.gz",
"sha256": "8ee064c92f2465fd79017397750f4d12c212c591d8feb1d198863e992613b3b7"
},
{
"only-arches": [ "x86_64" ],
"type": "shell",
"commands": [
"tar -xzf 'Packet Tracer 7.1.1 for Linux 64 bit.tar.gz' || true",
"chmod -R u+w .",
"rm 'Packet Tracer 7.1.1 for Linux 64 bit.tar.gz'",
"install -d /app/share/applications",
"sed 's|Icon=.*|Icon=com.cisco.PacketTracer-71|; s|Exec=.*|Exec=PacketTracer7.sh|;' bin/Cisco-PacketTracer.desktop > /app/share/applications/com.cisco.PacketTracer-71.desktop",
"echo 'StartupWMClass=PacketTracer-71' >> /app/share/applications/com.cisco.PacketTracer-71.desktop",
"install -d /app/share/icons/hicolor/48x48/apps",
"cp art/app.png /app/share/icons/hicolor/48x48/apps/com.cisco.PacketTracer-71.png"
]
}
]
},
{
"name": "icu4c-52",
"buildsystem": "simple",
"build-commands": [
"cp -r usr/local/lib/. /app/lib"
],
"sources": [
{
"only-arches": [ "x86_64" ],
"type": "archive",
"url": "http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-RHEL6-x64.tgz",
"sha256": "2a73302fa3556a113cd5e3de9c14cf6fc39e308fbe6970af6d84d723bf2c66a3",
"strip-components": 0
}
]
},
{
"name": "libpng12",
"cleanup": [ "/bin", "/share" ],
"sources": [
{
"type": "archive",
"url": "http://download.sourceforge.net/libpng/libpng-1.2.54.tar.xz",
"sha256": "cf85516482780f2bc2c5b5073902f12b1519019d47bf473326c2018bdff1d272"
}
]
},
{
"name": "start",
"buildsystem": "simple",
"build-commands": [
"cp PacketTracer7.sh /app/bin/PacketTracer7.sh"
],
"sources": [
{
"type": "script",
"dest-filename": "PacketTracer7.sh",
"commands": [
"exec env HOME=\"$HOME/Packet Tracer 7.1\" PacketTracer7 \"$@\""
]
}
]
},
{
"name": "pthome-for-javaws",
"buildsystem": "simple",
"build-commands": [
"cp packettracer-71 /app/packettracer"
],
"sources": [
{
"type": "script",
"dest-filename": "packettracer-71",
"commands": [
"exec /usr/bin/flatpak run com.cisco.PacketTracer-71 \"$@\""
]
}
]
}
]
}