Add debian package files

pull/3/head
Werner Sembach 4 years ago
parent 739f14f17b
commit 2f2432e69a

9
.gitignore vendored

@ -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/

5
debian/changelog vendored

@ -0,0 +1,5 @@
tuxedo-touchpad-switch (0.0.2) focal; urgency=medium
* Initial release.
-- Werner Sembach <tux@tuxedocomputers.com> Mon, 01 Feb 2021 15:27:01 +0100

1
debian/compat vendored

@ -0,0 +1 @@
12

17
debian/control vendored

@ -0,0 +1,17 @@
Source: tuxedo-touchpad-switch
Section: misc
Priority: optional
Maintainer: Werner Sembach <tux@tuxedocomputers.com>
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.

50
debian/copyright vendored

@ -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 <tux@tuxedocomputers.com>
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 <https://www.gnu.org/licenses/>.
.
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.

3
debian/rules vendored

@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@

@ -0,0 +1 @@
3.0 (native)

@ -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
Loading…
Cancel
Save