Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Debian packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbaa committed Aug 30, 2020
1 parent eae4b18 commit 201c231
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Python stuff
*.pyc
__pycache__/

# Debian
mcpi-central_*-*.deb
deb/
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# 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/lib/python3/dist-packages/mcpicentral
mkdir -p ./deb/DEBIAN/
cp -a ./src/. ./deb/usr/lib/python3/dist-packages/mcpicentral
@echo "Package: mcpi-central" > ./deb/DEBIAN/control
@echo "Version: 0.2.0" >> ./deb/DEBIAN/control
@echo "Priority: optional" >> ./deb/DEBIAN/control
@echo "Architecture: armhf" >> ./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/mcpi-central" >> ./deb/DEBIAN/control
@echo "Vcs-Git: https://github.com/MCPI-Devs/mcpi-central.git" >> ./deb/DEBIAN/control
@echo "Description: MCPI centralized API.\n" >> ./deb/DEBIAN/control
dpkg-deb -b ./deb/ ./mcpi-central_0.2.0-1.deb

clean:
rm -rf ./deb/
rm -f ./mcpi-central_*-*.deb
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ cd mcpi-central
pip3 install .
```

You can also install these from the Packagecloud Debian repository:
```shell
# If you didn't add the repository yet
curl -s https://packagecloud.io/install/repositories/Alvarito050506/mcpi-devs/script.deb.sh | sudo bash

# Now the actual installation
sudo apt-get install mcpi-central
```

## API
The client API exposes the following methods through the `APIClient` class:

Expand Down

0 comments on commit 201c231

Please sign in to comment.