From 720247766703ec7f5900c2f7bc4d5296db295596 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Thu, 28 Oct 2021 12:32:41 +0200 Subject: [PATCH] pydev-s6 --- debian/xknx.control | 12 ++++++++++++ debian/xknx.cp | 8 ++++++++ debian/xknx.prepare | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 debian/xknx.control create mode 100755 debian/xknx.cp create mode 100755 debian/xknx.prepare 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 + + -- 2.20.1