From b6d343cc93be8140b9a812fe8ee5833d86405dfa Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Tue, 20 Feb 2024 13:05:40 -0600 Subject: [PATCH] Initial commit --- .clang-format | 17 +++++++ .editorconfig | 17 +++++++ .gitattributes | 8 ++++ .github/workflows/build.yml | 77 ++++++++++++++++++++++++++++++ .gitignore | 4 ++ .pc/.quilt_patches | 1 + .pc/.quilt_series | 1 + .pc/.version | 1 + .pc/applied-patches | 0 debian/changelog | 15 ++++++ debian/control | 23 +++++++++ debian/copyright | 55 +++++++++++++++++++++ debian/files | 1 + debian/rules | 4 ++ debian/sddm-conf.lintian-overrides | 1 + debian/source/format | 1 + debian/upstream/metadata | 4 ++ debian/watch | 4 ++ 18 files changed, 234 insertions(+) create mode 100644 .clang-format create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .github/workflows/build.yml create mode 100644 .gitignore create mode 100644 .pc/.quilt_patches create mode 100644 .pc/.quilt_series create mode 100644 .pc/.version create mode 100644 .pc/applied-patches create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/files create mode 100755 debian/rules create mode 100644 debian/sddm-conf.lintian-overrides create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..4bdb1cb --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +--- +AccessModifierOffset: -4 +AlignAfterOpenBracket: Align +AlignEscapedNewlines: DontAlign +AlignTrailingComments: true +BreakBeforeBinaryOperators: All +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterFunction: true +BreakConstructorInitializers: BeforeComma +ColumnLimit: 104 +FixNamespaceComments: true +IndentWidth: 4 +SortIncludes: false + +... diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ac8491 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig configuration +# http://editorconfig.org + +# Top-most EditorConfig file +root = true + +# UTF-8 charset, set indent to spaces with width of four, +# with no trailing whitespaces and a newline ending every file. +[*] +charset = utf-8 +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{html,json,md,yml,sh}] +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1d99851 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# See https://help.github.com/en/articles/dealing-with-line-endings + +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.svgz binary diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cbb5e6d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,77 @@ +name: Build +on: + push: + branches: + - '*' + tags: + - '[0-9]*' + pull_request: + branches: + - '*' + workflow_dispatch: + branches: + - '*' +defaults: + run: + shell: bash +env: + build_type: Release +jobs: + linux: + name: Linux + runs-on: ubuntu-latest + strategy: + matrix: + config: + - { name: "GCC", cc: gcc, cxx: g++ } + - { name: "clang", cc: clang, cxx: clang++ } + env: + cc: ${{ matrix.config.cc }} + cxx: ${{ matrix.config.cxx }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Checkout Qtilitools + uses: actions/checkout@v3 + with: + repository: qtilities/qtilitools + path: qtilitools + + - name: Update Packages + run: sudo apt-get update + + - name: Install Dependencies + run: | + packages=( + qtbase5-dev + qttools5-dev + pkexec + sddm + ) + sudo apt-get install ${packages[@]} + + - name: Build and install Qtilitools + working-directory: ${{ github.workspace }}/qtilitools + run: | + options=( + -D CMAKE_INSTALL_PREFIX="/usr" + -D CMAKE_BUILD_TYPE=${{ env.build_type }} + -B build + ) + cmake ${options[@]} + sudo cmake --install build + + - name: Configure + run: | + options=( + -D CMAKE_INSTALL_PREFIX="/usr" + -D CMAKE_BUILD_TYPE=${{ env.build_type }} + -B build + ) + cmake ${options[@]} + + - name: Build + run: cmake --build build --config ${{ env.build_type }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f59c469 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build*/ +*.user +compile_commands.json +resources/about.md diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches new file mode 100644 index 0000000..6857a8d --- /dev/null +++ b/.pc/.quilt_patches @@ -0,0 +1 @@ +debian/patches diff --git a/.pc/.quilt_series b/.pc/.quilt_series new file mode 100644 index 0000000..c206706 --- /dev/null +++ b/.pc/.quilt_series @@ -0,0 +1 @@ +series diff --git a/.pc/.version b/.pc/.version new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/.pc/.version @@ -0,0 +1 @@ +2 diff --git a/.pc/applied-patches b/.pc/applied-patches new file mode 100644 index 0000000..e69de29 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c6b24bb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,15 @@ +sddm-conf (0.2.0-0ubuntu2) noble; urgency=medium + + * New upstream release. + * Don't use the "Release" build type anymore, it could interfere with debug + info generation. + * Remove an inaccurate documentation field in upstream metadata. + * Created debian/watch file. + + -- Aaron Rainbolt Tue, 20 Feb 2024 12:40:53 -0600 + +sddm-conf (0.2.0~git20231105-0ubuntu1) noble; urgency=medium + + * Initial release (LP: #2043824). + + -- Simon Quigley Fri, 17 Nov 2023 12:26:41 -0600 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..85996b9 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: sddm-conf +Section: x11 +Priority: optional +Maintainer: Lubuntu Developers +Uploaders: Simon Quigley +Rules-Requires-Root: no +Build-Depends: cmake (>= 3.15), + debhelper-compat (= 13), + libqt5widgets5, + libqtilitools-dev, + qtbase5-dev, + qttools5-dev +Standards-Version: 4.6.2 +Homepage: https://github.com/qtilities/sddm-conf/ +Vcs-Browser: https://git.lubuntu.me/Lubuntu/sddm-conf-packaging +Vcs-Git: https://git.lubuntu.me/Lubuntu/sddm-conf-packaging.git + +Package: sddm-conf +Architecture: any +Depends: polkitd, sddm, ${misc:Depends}, ${shlibs:Depends} +Description: Configuration editor for SDDM + Configuration editor for SDDM similar to sddm-config-editor, but written in + C++. Requires polkit to save settings. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7456024 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,55 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/qtilities/sddm-conf/ +Upstream-Name: sddm-conf +Upstream-Contact: https://groups.google.com/g/qtilities + +Files: * +Copyright: 2021-2024 Andrea Zanellato +License: MIT + +Files: resources/icons/*.svgz +Copyright: 2007 Nuno Pinheiro + 2007 David Vignoni + 2007 David Miller + 2007 Johann Ollivier Lapeyre + 2007 Kenneth Wimer + 2007 Riccardo Iaconelli +License: LGPL-3+ + This program or 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 3 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. + . + On Debian systems, the complete text of the GNU Lesser General + Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3". +Comment: Per the COPYING file: The exception in section 5 of the GNU Lesser General Public License covers + the use of elements of this art library in a GUI. + +Files: debian/* +Copyright: 2023 Simon Quigley + 2024 Aaron Rainbolt +License: 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/files b/debian/files new file mode 100644 index 0000000..03c7551 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +sddm-conf_0.2.0-0ubuntu2_source.buildinfo x11 optional diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/sddm-conf.lintian-overrides b/debian/sddm-conf.lintian-overrides new file mode 100644 index 0000000..24400aa --- /dev/null +++ b/debian/sddm-conf.lintian-overrides @@ -0,0 +1 @@ +no-manual-page [usr/bin/sddm-conf] diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..f9c4aa6 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/qtilities/sddm-conf/issues +Bug-Submit: https://github.com/qtilities/sddm-conf/issues/new +Repository-Browse: https://github.com/qtilities/sddm-conf/ +Repository: https://github.com/qtilities/sddm-conf.git diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..5edd75a --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="searchmode=plain, \ +filenamemangle=s/.*(@ANY_VERSION@)/sddm-conf-$1.tar.gz/" \ + https://api.github.com/repos/qtilities/@PACKAGE@/releases https:\/\/api.github.com\/repos\/qtilities\/@PACKAGE@\/tarball\/@ANY_VERSION@