Skip to content
This repository was archived by the owner on Jun 13, 2022. It is now read-only.

Commit 97523fa

Browse files
authored
Merge pull request IkerGarcia#21 from damianvila/master
v4.2, see CHANGELOG
2 parents 8c718e7 + b839186 commit 97523fa

23 files changed

+290
-31
lines changed

Icons/bsdgames.png

3.09 KB
Loading
File renamed without changes.

Installers/bsd.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#!/bin/bash
22

3+
echo "Installing BSD Games. This make take a while. Please be patient..."
4+
35
sudo apt-get install -y bsdgames bsdgames-nonfree
46

7+
# BSD Games icon
8+
if test -f ~/.pocket-home/.version; then
9+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "BSD Games")' ~/.pocket-home/config.json`
10+
if [ -z ${IS_ICON_PRESENT} ]
11+
then
12+
jq '(.pages[0] | .items) |= . + [{ "name": "BSD Games", "icon": "~/PocketInstaller/Icons/bsdgames.png", "shell": "/home/chip/PocketInstaller/Launchers/bsdgames.sh" }]' ~/.pocket-home/config.json > tmp.$$.json
13+
mv tmp.$$.json ~/.pocket-home/config.json
14+
fi
15+
fi
16+
17+
echo "BSD Games installed!"

Installers/colem.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#!/bin/bash
22

3+
echo "Installing ColEm. This make take a while. Please be patient..."
4+
35
# Update and install dependencies
46
sudo apt-get update
57
sudo apt-get install -y build-essential zlib1g-dev libx11-dev libxext-dev unrar
68

79
# Zeroing working directory
810
cd ~
911

10-
# Get source code
12+
# Get source code
1113
wget http://fms.komkon.org/ColEm/ColEm40-Source.zip -O ~/ColEm40-Source.zip
1214

13-
# Unzip
15+
# Unzip
1416
unzip ~/ColEm40-Source.zip
1517

1618
# Clean up
@@ -22,5 +24,14 @@ cd ~/ColEm/Unix
2224
# Build
2325
make
2426

25-
26-
27+
# ColEm icon
28+
if test -f ~/.pocket-home/.version; then
29+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "ColEm")' ~/.pocket-home/config.json`
30+
if [ -z ${IS_ICON_PRESENT} ]
31+
then
32+
jq '(.pages[0] | .items) |= . + [{ "name": "ColEm", "icon": "~/PocketInstaller/Icons/colem.png", "shell": "/home/chip/ColEm/Unix/colem" }]' ~/.pocket-home/config.json > tmp.$$.json
33+
mv tmp.$$.json ~/.pocket-home/config.json
34+
fi
35+
fi
36+
37+
echo "ColEm installed!"

Installers/doom.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
22

3+
echo "Installing Doom. This make take a while. Please be patient..."
4+
35
sudo apt-get install -y prboom doom-wad-shareware
6+
7+
# Add icons
8+
if test -f ~/.pocket-home/.version; then
9+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "Doom")' ~/.pocket-home/config.json`
10+
if [ -z ${IS_ICON_PRESENT} ]
11+
then
12+
jq '(.pages[0] | .items) |= . + [{ "name": "Doom", "icon": "~/PocketInstaller/Icons/doom.png", "shell": "prboom" }]' ~/.pocket-home/config.json > tmp.$$.json
13+
mv tmp.$$.json ~/.pocket-home/config.json
14+
fi
15+
fi
16+
17+
echo "Doom installed!"

Installers/dosbox.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
#!/bin/bash
22

3+
echo "Installing DosBox. This make take a while. Please be patient..."
4+
35
sudo apt-get install -y dosbox
6+
7+
# DOSBox icon
8+
if test -f ~/.pocket-home/.version; then
9+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "DOSBox")' ~/.pocket-home/config.json`
10+
if [ -z ${IS_ICON_PRESENT} ]
11+
then
12+
jq '(.pages[0] | .items) |= . + [{ "name": "DOSBox", "icon": "~/PocketInstaller/Icons/dosbox.png", "shell": "dosbox" }]' ~/.pocket-home/config.json > tmp.$$.json
13+
mv tmp.$$.json ~/.pocket-home/config.json
14+
fi
15+
fi
16+
17+
echo "DosBox installed!"

Installers/freedroid.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
#!/bin/bash
2+
3+
echo "Installing Freedroid. This make take a while. Please be patient..."
4+
25
sudo apt-get install -y freedroid
6+
7+
# Freedroid icon
8+
if test -f ~/.pocket-home/.version; then
9+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "Freedroid")' ~/.pocket-home/config.json`
10+
if [ -z ${IS_ICON_PRESENT} ]
11+
then
12+
jq '(.pages[0] | .items) |= . + [{ "name": "Freedroid", "icon": "~/PocketInstaller/Icons/freedroid.png", "shell": "/home/chip/PocketInstaller/Launchers/freedroid.sh" }]' ~/.pocket-home/config.json > tmp.$$.json
13+
mv tmp.$$.json ~/.pocket-home/config.json
14+
fi
15+
fi
16+
17+
echo "Freedroid installed!"

Installers/gargoyle.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
3+
echo "Installing Gargoyle. This make take a while. Please be patient..."
4+
25
# Install Gargoyle: interactive fiction parser for many formats
36
CHIP_STORY_LOCATION=/usr/local/share/IF
47
sudo mkdir -p -m 775 "$CHIP_STORY_LOCATION"
@@ -7,3 +10,14 @@ sudo chown -R chip "$CHIP_STORY_LOCATION"
710
sudo apt-get update
811
sudo apt-get install -y gargoyle-free
912

13+
# Gargoyle icon
14+
if test -f ~/.pocket-home/.version; then
15+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "Gargoyle")' ~/.pocket-home/config.json`
16+
if [ -z ${IS_ICON_PRESENT} ]
17+
then
18+
jq '(.pages[0] | .items) |= . + [{ "name": "Gargoyle", "icon": "~/PocketInstaller/Icons/gargoyle.png", "shell": "gargoyle-free" }]' ~/.pocket-home/config.json > tmp.$$.json
19+
mv tmp.$$.json ~/.pocket-home/config.json
20+
fi
21+
fi
22+
23+
echo "Gargoyle installed!"

Installers/gngeo.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
echo "Installing GnGeo. This make take a while. Please be patient..."
4+
35
sudo wget -O /tmp/gngeo.tar.gz https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gngeo/gngeo-0.8.tar.gz
46
sudo tar -zxvf /tmp/gngeo.tar.gz -C /home/chip/
57
sudo rm -r /tmp/gngeo.tar.gz
@@ -9,3 +11,15 @@ cd /home/chip/gngeo-0.8
911
sudo ./configure
1012
sudo make
1113
sudo make install
14+
15+
# GnGeo icon
16+
if test -f ~/.pocket-home/.version; then
17+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "GnGeo")' ~/.pocket-home/config.json`
18+
if [ -z ${IS_ICON_PRESENT} ]
19+
then
20+
jq '(.pages[0] | .items) |= . + [{ "name": "GnGeo", "icon": "~/PocketInstaller/Icons/gngeo.png", "shell": "gngeo" }]' ~/.pocket-home/config.json > tmp.$$.json
21+
mv tmp.$$.json ~/.pocket-home/config.json
22+
fi
23+
fi
24+
25+
echo "GnGeo installed!"

Installers/lectrote.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
3+
echo "Installing Lectrote. This make take a while. Please be patient..."
4+
25
# Install Lectrote: interactive fiction parser for Z-machine, Glulx, & Hugo
36
CHIP_STORY_LOCATION=/usr/local/share/IF
47
sudo mkdir -p -m 775 "$CHIP_STORY_LOCATION"
@@ -21,3 +24,14 @@ sudo npm install -g
2124
# Clean up when we're done
2225
rm -rf /home/chip/lectrote-lectrote-1.2.5
2326

27+
# Lectrote icon
28+
if test -f ~/.pocket-home/.version; then
29+
IS_ICON_PRESENT=`jq '.pages[0] | .items[] | select(.name == "Lectrote")' ~/.pocket-home/config.json`
30+
if [ -z ${IS_ICON_PRESENT} ]
31+
then
32+
jq '(.pages[0] | .items) |= . + [{ "name": "Lectrote", "icon": "~/PocketInstaller/Icons/lectrote.png", "shell": "lectrote" }]' ~/.pocket-home/config.json > tmp.$$.json
33+
mv tmp.$$.json ~/.pocket-home/config.json
34+
fi
35+
fi
36+
37+
echo "Lectrote installed!"

0 commit comments

Comments
 (0)