Compare commits

...

7 commits

Author SHA1 Message Date
Micke Nordin
a36e5aa170
Update Roadmap 2022-05-25 08:33:54 +02:00
Micke Nordin
ea5f0f501f
Help wanted for packaging 2022-05-25 08:31:56 +02:00
Micke Nordin
caf3be2ac8
Merge branch 'master' of ssh://code.smolnet.org:22022/micke/tinge 2022-05-25 08:25:18 +02:00
Micke Nordin
180b9382f5 Update 'README.md' 2022-05-24 14:45:53 +00:00
Micke Nordin
8fe9ea5534 Update 'README.md' 2022-05-24 14:45:17 +00:00
Micke Nordin
1f969054b2 Update 'README.md' 2022-05-24 14:45:02 +00:00
Micke Nordin
9dd5156e32
Add packaging scripts for .deb 2022-05-24 15:33:28 +02:00
4 changed files with 42 additions and 17 deletions

View file

@ -3,24 +3,22 @@
Tinge is a mobile first application for controlling Philips Hue lights on Linux
## Installation
Install wxPython (don't use pip to install it) eg. for PostmarketOS:
On Debian/Mobian
```
sudo apk add py3-wxpython
```
or for Debian/Mobian:
```
sudo apt install python3-wxgtk4.0
wget -O - https://repo.mic.ke/PUBLIC.KEY | sudo gpg --output /usr/share/keyrings/micke-archive-unstable.gpg --dearmor
echo "deb [signed-by=/usr/share/keyrings/micke-archive-unstable.gpg] https://repo.mic.ke/debian/ unstable main
deb-src [signed-by=/usr/share/keyrings/micke-archive-unstable.gpg] https://repo.mic.ke/debian/ unstable main" | \
sudo tee /etc/apt/sources.list.d/debian-micke-unstable.list
sudo apt update && sudo apt install python3-tinge
```
clone this repository:
```
git clone https://code.smolnet.org/micke/tinge
```
Run the crude installer:
```
cd tinge
./install.sh
```
If you want to help with packaging in other format, please get in touch by commenting on the appropriate issue:
- [Alpine](https://code.smolnet.org/micke/tinge/issues/10)
- [Appimage](https://code.smolnet.org/micke/tinge/issues/22)
- [Arch](https://code.smolnet.org/micke/tinge/issues/20)
- [Flatpak](https://code.smolnet.org/micke/tinge/issues/21)
- [RPM](https://code.smolnet.org/micke/tinge/issues/9)
## Requirements
Requires a recent Python3 and pip3, most likely python >= 3.7. It is only tested with 3.9 on PostmarketOS on the PinePhone and on Debian Bullseye though.

View file

@ -15,10 +15,11 @@
# 1.0.0
- [x] [Debian package](https://code.smolnet.org/micke/tinge/issues/8)
- [ ] [RPM](https://code.smolnet.org/micke/tinge/issues/9)
- [ ] [Alpine package](https://code.smolnet.org/micke/tinge/issues/10)
- [ ] [Arch package](https://code.smolnet.org/micke/tinge/issues/20)
- [ ] [RPM](https://code.smolnet.org/micke/tinge/issues/9)
- [x] [Custom icon/logo for project](https://code.smolnet.org/micke/tinge/issues/11)
- [x] [Debian package](https://code.smolnet.org/micke/tinge/issues/8)
# 2.0.0
- [ ] [Schedules](https://code.smolnet.org/micke/tinge/issues/12)

23
packaging_scripts/deb.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Where I keep the sources
deb_version=${1}
if [[ "x${deb_version}" == "x" ]]; then
deb_version=1
fi
BASEDIR=~/sources
SRCDIR="${BASEDIR}/tinge"
# Version of Tinge
VERSION=$(grep version= ${SRCDIR}/setup.py | awk -F '"' '{print $2}' )
# Change to source dir
olddir=$(pwd)
cd ${SRCDIR}
# Build deb
python3 setup.py --command-packages=stdeb.command bdist_deb #--debian-version ${deb_version}
cp deb_dist/* ${olddir}
rm -r ${SRCDIR}/deb_dist/ ${SRCDIR}/tinge-${VERSION}.tar.gz
cd ${olddir}

3
stdeb.cfg Normal file
View file

@ -0,0 +1,3 @@
[DEFAULT]
Depends3: python3-upnpy, python3-wxgtk4.0, python3-toml, python3-requests
Debian-Version: 2