-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
45 lines (43 loc) · 1.83 KB
/
Makefile
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
#
# Makefile
#
# Copyright 2020 Alvarito050506 <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
#
pack:
mkdir -p ./deb/
mkdir -p ./deb/usr/bin/
mkdir -p ./deb/usr/lib/python3/dist-packages/
mkdir -p ./deb/DEBIAN/
cp ./proxy.py ./deb/usr/lib/python3/dist-packages/mcpip.py
chmod a+x ./deb/usr/lib/python3/dist-packages/mcpip.py
rm -f ./deb/usr/bin/mcpip
ln -s /usr/lib/python3/dist-packages/mcpip.py ./deb/usr/bin/mcpip
@echo "Package: mcpi-proxy" > ./deb/DEBIAN/control
@echo "Version: 0.3.1" >> ./deb/DEBIAN/control
@echo "Priority: optional" >> ./deb/DEBIAN/control
@echo "Architecture: all" >> ./deb/DEBIAN/control
@echo "Depends: python3" >> ./deb/DEBIAN/control
@echo "Maintainer: Alvarito050506 <[email protected]>" >> ./deb/DEBIAN/control
@echo "Homepage: https://mcpi.tk" >> ./deb/DEBIAN/control
@echo "Vcs-Browser: https://github.com/MCPI-Devs/proxy" >> ./deb/DEBIAN/control
@echo "Vcs-Git: https://github.com/MCPI-Devs/proxy.git" >> ./deb/DEBIAN/control
@echo "Description: Minecraft Pi Proxy to allow players to connect to remote servers.\n" >> ./deb/DEBIAN/control
dpkg-deb -b ./deb/ ./mcpi-proxy_0.3.1-1.deb
clean:
rm -rf ./deb/
rm -f ./mcpi-proxy_*-*.deb