pydev-s6
authorMichael Wagner <michael@wagnertech.de>
Thu, 28 Oct 2021 10:32:41 +0000 (12:32 +0200)
committerMichael Wagner <michael@wagnertech.de>
Thu, 28 Oct 2021 10:32:41 +0000 (12:32 +0200)
debian/xknx.control [new file with mode: 0644]
debian/xknx.cp [new file with mode: 0755]
debian/xknx.prepare [new file with mode: 0755]

diff --git a/debian/xknx.control b/debian/xknx.control
new file mode 100644 (file)
index 0000000..1ad533e
--- /dev/null
@@ -0,0 +1,12 @@
+Source: xknx
+Section: main
+Priority: optional
+Maintainer: Michael Wagner <michael@wagnertech.de>
+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 (executable)
index 0000000..c08b9aa
--- /dev/null
@@ -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 (executable)
index 0000000..6654ace
--- /dev/null
@@ -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
+
+