-
Notifications
You must be signed in to change notification settings - Fork 0
/
jre-8u301.py
44 lines (35 loc) · 1.13 KB
/
jre-8u301.py
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
Name="jre-8u301"
Version="2"
License="https://java.com/otnlicense"
Maintainer="Can202"
Contact="[email protected]"
Arch="both"
idurDepends= ["idur-pkg"]
Conflict= ["jre-8u301"]
Description="""
jre 8
"""
Install64="""
idur-pkg tmp jre
cd /tmp/idur-jre-tmp/
idur-pkg download https://github.com/idur-package/non-free-repo/releases/download/binaries/jre-8u301-linux-x64.tar.gz
tar -xvzf jre-8u301-linux-x64.tar.gz
cp -r jre1.8.0_301/ /opt/
idur-pkg read https://raw.githubusercontent.com/idur-package/media/bc4b85aa849ce60bc8ad8b93ea64b89cb97b01bb/jre-8u301/jre-8u301 > /usr/bin/jre-8u301
chmod a+x /usr/bin/jre-8u301
idur-pkg rm-tmp
"""
Install32="""
idur-pkg tmp jre
cd /tmp/idur-jre-tmp/
idur-pkg download https://github.com/idur-package/non-free-repo/releases/download/binaries/jre-8u301-linux-i586.tar.gz
tar -xvzf jre-8u301-linux-i586.tar.gz
cp -r jre1.8.0_301/ /opt/
idur-pkg read https://raw.githubusercontent.com/idur-package/media/bc4b85aa849ce60bc8ad8b93ea64b89cb97b01bb/jre-8u301/jre-8u301 > /usr/bin/jre-8u301
chmod a+x /usr/bin/jre-8u301
idur-pkg rm-tmp
"""
Remove="""
idur-pkg rm /usr/bin/jre-8u301
idur-pkg rm /opt/jre1.8.0_301/
"""