Add packaging scripts for .deb
This commit is contained in:
parent
aa09dc71f6
commit
9dd5156e32
2 changed files with 20 additions and 0 deletions
18
packaging_scripts/deb.sh
Executable file
18
packaging_scripts/deb.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
# Where I keep the sources
|
||||
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
|
||||
|
||||
cp deb_dist/tinge_${VERSION}-1.dsc ${olddir}
|
||||
cp deb_dist/python3-tinge_${VERSION}-1_all.deb ${olddir}
|
||||
rm -r ${SRCDIR}/deb_dist/ ${SRCDIR}/tinge-${VERSION}.tar.gz
|
||||
cd ${olddir}
|
2
stdeb.cfg
Normal file
2
stdeb.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[DEFAULT]
|
||||
Depends3: python3-upnpy, python3-wxgtk4.0
|
Loading…
Add table
Reference in a new issue