From ea5f0f501fa34cc720dcae1a04a5f41c2a3da56a Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 25 May 2022 08:31:56 +0200 Subject: [PATCH] Help wanted for packaging --- README.md | 8 ++++++++ packaging_scripts/deb.sh | 11 ++++++++--- stdeb.cfg | 3 ++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eb6b9bf..bf0ff7c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,14 @@ deb-src [signed-by=/usr/share/keyrings/micke-archive-unstable.gpg] https://repo. sudo tee /etc/apt/sources.list.d/debian-micke-unstable.list sudo apt update && sudo apt install python3-tinge ``` + +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. diff --git a/packaging_scripts/deb.sh b/packaging_scripts/deb.sh index 19f3d45..7aca6db 100755 --- a/packaging_scripts/deb.sh +++ b/packaging_scripts/deb.sh @@ -1,5 +1,11 @@ #!/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 @@ -10,9 +16,8 @@ olddir=$(pwd) cd ${SRCDIR} # Build deb -python3 setup.py --command-packages=stdeb.command bdist_deb +python3 setup.py --command-packages=stdeb.command bdist_deb #--debian-version ${deb_version} -cp deb_dist/tinge_${VERSION}-1.dsc ${olddir} -cp deb_dist/python3-tinge_${VERSION}-1_all.deb ${olddir} +cp deb_dist/* ${olddir} rm -r ${SRCDIR}/deb_dist/ ${SRCDIR}/tinge-${VERSION}.tar.gz cd ${olddir} diff --git a/stdeb.cfg b/stdeb.cfg index bddf1dc..463c411 100644 --- a/stdeb.cfg +++ b/stdeb.cfg @@ -1,2 +1,3 @@ [DEFAULT] -Depends3: python3-upnpy, python3-wxgtk4.0 +Depends3: python3-upnpy, python3-wxgtk4.0, python3-toml, python3-requests +Debian-Version: 2