-
Notifications
You must be signed in to change notification settings - Fork 0
/
game-of-life-can.py
97 lines (70 loc) · 2.32 KB
/
game-of-life-can.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
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
Name="game-of-life-can"
Version="v1"
Maintainer="Can202"
Contact="[email protected]"
Time="short"
Arch="both"
License="https://raw.githubusercontent.com/Can202/GameOfLifeGodot/main/LICENSE"
Depends = ["libxcursor1"]
idurDepends= ["idur-pkg"]
Conflict= ["game-of-life-can"]
Description="""
The Game of Life by John Horton Conway created on Godot
"""
Install64="""
idur-pkg tmp golc
cd /tmp/idur-golc-tmp/
idur-pkg download https://github.com/Can202/GameOfLifeGodot/releases/download/v1/linux64.zip
unzip linux64.zip
chmod a+x GameOfLife.x86_64
echo "#!/usr/bin/bash
cd /usr/lib64/game-of-life-can/
./GameOfLife.x86_64" > game-of-life-can
chmod a+x game-of-life-can
idur-pkg rm linux64.zip
idur-pkg download https://raw.githubusercontent.com/Can202/GameOfLifeGodot/main/icon/icon.png
mkdir -p /usr/share/icons/hicolor/256x256/apps/
cp icon.png /usr/share/icons/hicolor/256x256/apps/game-of-life-can.png
echo "
[Desktop Entry]
Name=Game of Life
Exec=game-of-life-can
Icon=game-of-life-can
Type=Application
Categories=Game" > /usr/share/applications/game-of-life-can.desktop
mkdir -p /usr/lib64/game-of-life-can
cp * /usr/lib64/game-of-life-can/
ln /usr/lib64/game-of-life-can/game-of-life-can /usr/bin/game-of-life-can
"""
Install32="""
idur-pkg tmp golc
cd /tmp/idur-golc-tmp/
idur-pkg download https://github.com/Can202/GameOfLifeGodot/releases/download/v1/linux32.zip
unzip linux32.zip
chmod a+x GameOfLife.x86
echo "#!/usr/bin/bash
cd /usr/lib32/game-of-life-can/
./GameOfLife.x86" > game-of-life-can
chmod a+x game-of-life-can
idur-pkg rm linux32.zip
idur-pkg download https://raw.githubusercontent.com/Can202/GameOfLifeGodot/main/icon/icon.png
mkdir -p /usr/share/icons/hicolor/256x256/apps/
cp icon.png /usr/share/icons/hicolor/256x256/apps/game-of-life-can.png
echo "
[Desktop Entry]
Name=Game of Life
Exec=game-of-life-can
Icon=game-of-life-can
Type=Application
Categories=Game" > /usr/share/applications/game-of-life-can.desktop
mkdir -p /usr/lib32/game-of-life-can
cp * /usr/lib32/game-of-life-can/
ln /usr/lib32/game-of-life-can/game-of-life-can /usr/bin/game-of-life-can
"""
Remove="""
idur-pkg rm /usr/lib64/game-of-life-can
idur-pkg rm /usr/lib32/game-of-life-can
idur-pkg rm /usr/bin/game-of-life-can
idur-pkg rm /usr/share/icons/hicolor/256x256/apps/game-of-life-can.png
idur-pkg rm /usr/share/applications/game-of-life-can.desktop
"""