diff --git a/debian/changelog.in b/debian/changelog.in new file mode 100644 index 0000000..6a48de0 --- /dev/null +++ b/debian/changelog.in @@ -0,0 +1,5 @@ +openrgb-plugin-e131-receiver (__VERSION__) UNRELEASED; urgency=medium + + * Builds from git master. See git history for more information. + + -- Adam Honse Sat, 10 Aug 2024 15:43:30 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9ae4f60 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: openrgb-plugin-e131-receiver +Maintainer: Adam Honse +Section: misc +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: + debhelper (>= 9), + pkg-config, + qtbase5-dev, + qtbase5-dev-tools, + qttools5-dev-tools, + qt5-qmake, + libusb-1.0-0-dev, + libhidapi-dev, + libmbedtls-dev, +Homepage: https://gitlab.com/OpenRGBDevelopers/OpenRGBE131ReceiverPlugin + +Package: openrgb-plugin-e131-receiver +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + openrgb, +Description: E1.31 receiver plugin for OpenRGB diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e35cba1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,51 @@ + This package was debianized by Adam Honse on + 10th August 2024. + + The current Debian maintainer is Adam Honse + + It was downloaded from: https://gitlab.com/OpenRGBDevelopers/OpenRGBE131ReceiverPlugin + + Upstream Authors: Adam Honse + +License: GPL-2+ + Copyright: 2019 - Present Adam Honse + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 59 Temple Place, + Suite 330, Boston, MA 02111-1307 USA + + On Debian systems, the complete text of the GNU General Public + License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +License: GPL-2+ + The Files in ./* are Copyright 2019 - Present Adam Honse + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian systems, the complete text of the GNU Lesser General Public + License, can be found in /usr/share/common-licenses/LGPL. + + The Debian packaging is (C) 2006, Chris M and + is licensed under the GPL, see above. diff --git a/debian/openrgb-plugin-e131-receiver.postinst b/debian/openrgb-plugin-e131-receiver.postinst new file mode 100644 index 0000000..212c4ba --- /dev/null +++ b/debian/openrgb-plugin-e131-receiver.postinst @@ -0,0 +1 @@ +#!/usr/bin/env bash \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5ff9e1e --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +export QT_SELECT := qt5 + +%: + dh $@ --parallel diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/scripts/build-package-files.sh b/scripts/build-package-files.sh new file mode 100755 index 0000000..fa02b39 --- /dev/null +++ b/scripts/build-package-files.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +PROJECT_FILE="OpenRGBE131ReceiverPlugin.pro" +VERSION_PATTERN="__VERSION__" +INFILE_SUFFIX=".in" + +if [ -z "$1" ]; then + echo "ERROR! No file give to parse." + exit 1 +fi + +INFILE_PATH=${1}${INFILE_SUFFIX} + +if [ ! -e ${INFILE_PATH} ]; then + echo "ERROR! Source file ${INFILE_PATH} missing." + exit 1 +fi + +if [ -e ${1} ]; then + echo "Warning: File ${1} exists and will be overwritten" +fi + +MAJOR=$(grep MAJOR\ ${PROJECT_FILE} | cut -d= -f 2 | tr -d [:space:]) +MINOR=$(grep MINOR\ ${PROJECT_FILE} | cut -d= -f 2 | tr -d [:space:]) +REVISION=$(grep REVISION\ ${PROJECT_FILE} | cut -d= -f 2 | tr -d [:space:]) + +#Convert Revision to a nummber in case it is blank in the project file +REVISION=$(( ${REVISION} + 0 )) + +PACKAGE_VERSION="${MAJOR}.${MINOR}.${REVISION}" + +sed -e "s/${VERSION_PATTERN}/${PACKAGE_VERSION}/g" ${INFILE_PATH} > ${1}