diff --git a/.gitignore b/.gitignore index 21cd363..d204bc4 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,12 @@ /.project /.cproject /*.kdev4 + +/obj-x86_64-linux-gnu/ +/debian/* +!/debian/changelog +!/debian/compat +!/debian/control +!/debian/copyright +!/debian/rules +!/debian/source/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ae90c69 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tuxedo-touchpad-switch (0.0.2) focal; urgency=medium + + * Initial release. + + -- Werner Sembach Mon, 01 Feb 2021 15:27:01 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8879161 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: tuxedo-touchpad-switch +Section: misc +Priority: optional +Maintainer: Werner Sembach +Build-Depends: debhelper (>= 12), libudev-dev (>= 245.4), libglib2.0-dev (>= 2.64.3) +Standards-Version: 4.4.1 +Homepage: https://www.tuxedocomputers.com + +Package: tuxedo-touchpad-switch +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Toggles the touchpad and the attached disabled-LED on Uniwill/Tongfang laptops. + Provides a userspace driver that listens to config changes of the touchpad + enabled/disabled state in the xsession and sends appropriate commands to + /dev/hidraw* to appropiratly synchronize the hardware state. The LED on + Uniwill/Tongfang laptops touchpads is hardwired to that HID state, so this + package toggles this LED correctly. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a9bc2b2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,50 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tuxedo-touchpad-switch +Upstream-Contact: tux@tuxedcomputers.com +Source: https://www.tuxedocomputers.com + +Files: * +Copyright: 2020 TUXEDO Computers GmbH +License: GPL-3.0+ + +Files: MunkeiVersionFromGit.cmake +Copyright: 2016-2017 Theo Willows +License: MIT + +License: GPL-3.0+ + 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 3 of the License, or + (at your option) any later version. + . + This package 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 + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +License: MIT + The MIT License (MIT) + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ 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/update_version_and_changelog.sh b/update_version_and_changelog.sh new file mode 100755 index 0000000..6df856f --- /dev/null +++ b/update_version_and_changelog.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +[[ $(cat debian/changelog) =~ \(([0-9]*.[0-9]*.[0-9]*)\) ]] +LAST_CHANGELOG_VERSION=${BASH_REMATCH[1]} +echo "Last changelog version: $LAST_CHANGELOG_VERSION" +echo -n "New version (format: X.X.X): " +read NEW_CHANGELOG_VERSION + +if ! [[ $NEW_CHANGELOG_VERSION =~ ^([0-9]*.[0-9]*.[0-9]*)$ ]]; then + echo "Version string not in the expected format. Exiting" + exit 0; +fi + +dch -v $NEW_CHANGELOG_VERSION +dch -r + +git add debian/changelog +git commit -m "Update debian/changelog to version $NEW_CHANGELOG_VERSION" +git tag v$NEW_CHANGELOG_VERSION