From: Michael Wagner Date: Thu, 28 Oct 2021 10:32:41 +0000 (+0200) Subject: pydev-s6 X-Git-Tag: v_0.0-3~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=720247766703ec7f5900c2f7bc4d5296db295596;p=projects.git pydev-s6 --- diff --git a/debian/xknx.control b/debian/xknx.control new file mode 100644 index 0000000..1ad533e --- /dev/null +++ b/debian/xknx.control @@ -0,0 +1,12 @@ +Source: xknx +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git,build-essential + +Package: xknx +Section: main +Priority: optional +Architecture: all +Description: A KNX library written in Python + diff --git a/debian/xknx.cp b/debian/xknx.cp new file mode 100755 index 0000000..c08b9aa --- /dev/null +++ b/debian/xknx.cp @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +# parameter: $1: base dir for copy (optional) + +mkdir -p $1/usr/lib/python3/dist-packages/ +rsync -a --exclude=".git" Downloads/xknx/xknx/ $1/usr/lib/python3/dist-packages/xknx/ + diff --git a/debian/xknx.prepare b/debian/xknx.prepare new file mode 100755 index 0000000..6654ace --- /dev/null +++ b/debian/xknx.prepare @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +mkdir -p Downloads +cd Downloads + +if [ -d xknx ] +then + cd xknx + git fetch -t +else + git clone https://github.com/xknx/xknx + cd xknx +fi + +if [ $version != "0.0.0" ] +then + git checkout $version + cp LICENSE ../../debian/ +fi + +