Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit badbfb8

Browse files
committed
Debian packaging.
1 parent b9ae094 commit badbfb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+133
-219
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77

88
# Python stuff
99
__pycache__/
10+
11+
# Debian
12+
mcpil_*-*.deb
13+
deb/

.gitmodules

Lines changed: 0 additions & 12 deletions
This file was deleted.

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Makefile
3+
#
4+
# Copyright 2020 Alvarito050506 <[email protected]>
5+
#
6+
# This program is free software; you can redistribute it and/or modify
7+
# it under the terms of the GNU Lesser General Public License as published by
8+
# the Free Software Foundation; version 3 of the License.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program; if not, write to the Free Software
17+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18+
# MA 02110-1301, USA.
19+
#
20+
#
21+
22+
pack:
23+
mkdir -p ./deb/
24+
cp -a ./res/. ./deb/
25+
cp ./src/mcpil.py ./deb/usr/bin/mcpil
26+
cp ./src/mcpim.py ./deb/usr/bin/mcpim
27+
chmod a+x ./deb/usr/bin/mcpil
28+
chmod a+x ./deb/usr/bin/mcpim
29+
@echo "Package: mcpil" > ./deb/DEBIAN/control
30+
@echo "Version: 0.5.0" >> ./deb/DEBIAN/control
31+
@echo "Priority: optional" >> ./deb/DEBIAN/control
32+
@echo "Architecture: armhf" >> ./deb/DEBIAN/control
33+
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, python3" >> ./deb/DEBIAN/control
34+
@echo "Maintainer: Alvarito050506 <[email protected]>" >> ./deb/DEBIAN/control
35+
@echo "Homepage: https://mcpi.tk" >> ./deb/DEBIAN/control
36+
@echo "Vcs-Browser: https://github.com/MCPI-Devs/proxy" >> ./deb/DEBIAN/control
37+
@echo "Vcs-Git: https://github.com/MCPI-Devs/proxy.git" >> ./deb/DEBIAN/control
38+
@echo "Description: Minecraft Pi Proxy to allow players to connect to remote servers.\n" >> ./deb/DEBIAN/control
39+
dpkg-deb -b ./deb/ ./mcpil_0.5.0-1.deb
40+
41+
42+
clean:
43+
rm -rf ./deb/
44+
rm -f ./mcpil_*-*.deb

README.md

Lines changed: 11 additions & 15 deletions

build.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

build/minecraft/LICENSE.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.
-964 Bytes
Binary file not shown.
-523 Bytes
Binary file not shown.
-1.11 KB
Binary file not shown.
-710 Bytes
Binary file not shown.
-1.19 KB
Binary file not shown.
-724 Bytes
Binary file not shown.
-1.17 KB
Binary file not shown.
-708 Bytes
Binary file not shown.
-1.11 KB
Binary file not shown.
-686 Bytes
Binary file not shown.
-83.6 KB
Binary file not shown.
Binary file not shown.
-2.1 KB
Binary file not shown.
-368 Bytes
Binary file not shown.
Binary file not shown.
-508 Bytes
Binary file not shown.
-281 Bytes
Binary file not shown.
-24.6 KB
Binary file not shown.
-23 KB
Binary file not shown.
-13.6 KB
Binary file not shown.
-174 KB
Binary file not shown.
-2.38 KB
Binary file not shown.
-5.12 KB
Binary file not shown.
-29.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-6.61 KB
Binary file not shown.
-11.3 KB
Binary file not shown.
-5.67 KB
Binary file not shown.
-19.2 KB
Binary file not shown.
-322 Bytes
Binary file not shown.
-682 Bytes
Binary file not shown.
-1.23 KB
Binary file not shown.
-1.33 KB
Binary file not shown.
-492 Bytes
Binary file not shown.
-1.35 KB
Binary file not shown.
-2.93 KB
Binary file not shown.
-3.23 KB
Binary file not shown.
-2.96 KB
Binary file not shown.
-2.38 KB
Binary file not shown.
-1.61 KB
Binary file not shown.
-894 Bytes
Binary file not shown.
-2.49 KB
Binary file not shown.
-1.28 KB
Binary file not shown.
-1.87 KB
Binary file not shown.
-89.5 KB
Binary file not shown.

build/minecraft/lib/brcm/libEGL.so

-197 KB
Binary file not shown.

build/minecraft/lib/brcm/libGLESv2.so

-103 KB
Binary file not shown.

build/minecraft/lib/mesa/libEGL.so

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/minecraft/lib/mesa/libGLESv2.so

Lines changed: 0 additions & 1 deletion
This file was deleted.
-9.36 KB
Binary file not shown.

build/minecraft/minecraft-pe

-1.15 MB
Binary file not shown.

build/minecraft/minecraft-pe.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

build/minecraft/minecraft-pi

-1.15 MB
Binary file not shown.

build/minecraft/minecraft-pi.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

build/minecraft/options.txt

Whitespace-only changes.

libmcpi

Lines changed: 0 additions & 1 deletion
This file was deleted.

mcpi-central

Lines changed: 0 additions & 1 deletion
This file was deleted.

modpi

Lines changed: 0 additions & 1 deletion
This file was deleted.

proxy

Lines changed: 0 additions & 1 deletion
This file was deleted.

res/DEBIAN/postinst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
bspatch /opt/minecraft-pi/minecraft-pi /opt/minecraft-pi/minecraft-pe /opt/minecraft-pi/pi2pe.bsdiff
4+
rm -f /opt/minecraft-pi/pi2pe.bsdiff

res/opt/minecraft-pi/pi2pe.bsdiff

258 Bytes
Binary file not shown.

res/usr/bin/minecraft-pe.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
cd /opt/minecraft-pi || exit
4+
5+
if grep -q okay /proc/device-tree/soc/v3d@7ec00000/status \
6+
/proc/device-tree/soc/firmwarekms@7e600000/status 2> /dev/null; then
7+
export LD_PRELOAD=libbcm_host.so.1.0
8+
export LD_LIBRARY_PATH=lib/mesa
9+
else
10+
export LD_LIBRARY_PATH=lib/brcm
11+
fi
12+
13+
export LD_PRELOAD=/usr/lib/libmodpi.so
14+
15+
./minecraft-pe

res/usr/bin/minecraft-pi.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
cd /opt/minecraft-pi || exit
4+
5+
if grep -q okay /proc/device-tree/soc/v3d@7ec00000/status \
6+
/proc/device-tree/soc/firmwarekms@7e600000/status 2> /dev/null; then
7+
export LD_PRELOAD=libbcm_host.so.1.0
8+
export LD_LIBRARY_PATH=lib/mesa
9+
else
10+
export LD_LIBRARY_PATH=lib/brcm
11+
fi
12+
13+
export LD_PRELOAD="/usr/lib/libmodpi.so $LD_PRELOAD"
14+
15+
./minecraft-pi

build/res/tk.mcpi.mcpil.desktop renamed to res/usr/share/applications/tk.mcpi.mcpil.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Name=MCPIL
33
Comment=Minecraft Pi Launcher
4-
Exec=$(EXECUTABLE_PATH)
4+
Exec=mcpil
55
Icon=mcpil
66
Terminal=false
77
Type=Application
File renamed without changes.

src/install.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)