commit 5105ebd7b84ef0935b379db49cf4ac2b49e8c505 Author: Simon Quigley Date: Fri Nov 17 11:57:22 2023 -0600 Initial commit. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ba21802 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +qtilitools (0.1.1~git20231009-0ubuntu1) noble; urgency=medium + + * Initial release (LP: #2043824). + + -- Simon Quigley Fri, 17 Nov 2023 11:16:53 -0600 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3f4c65f --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: qtilitools +Section: libdevel +Priority: optional +Maintainer: Lubuntu Developers +Uploaders: Simon Quigley +Rules-Requires-Root: no +Build-Depends: cmake, debhelper-compat (= 13) +Standards-Version: 4.6.2 +Homepage: https://jpnaude.github.io/Qtilities/ +Vcs-Browser: https://git.lubuntu.me/Lubuntu/qtilitools-packaging +Vcs-Git: https://git.lubuntu.me/Lubuntu/qtilitools-packaging.git + +Package: libqtilitools-dev +Architecture: all +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Qtilitools library package + Qtilitools is the base utility for Qtilities, a set of lightweight Qt-based + applications. It is comparable to lxqt-build-tools. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bfe0dd8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/qtilities/qtilitools/ +Upstream-Name: Qtilitools +Upstream-Contact: https://groups.google.com/g/qtilities + +Files: * +Copyright: 2023 Qtilities Team +License: BSD-3 + +Files: debian/* +Copyright: 2023 Simon Quigley +License: BSD-3 + +License: BSD-3 + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/libqtilitools-dev.lintian-overrides b/debian/libqtilitools-dev.lintian-overrides new file mode 100644 index 0000000..13b919a --- /dev/null +++ b/debian/libqtilitools-dev.lintian-overrides @@ -0,0 +1 @@ +no-manual-page [usr/bin/qtls-translate] diff --git a/debian/patches/fix-syntax.patch b/debian/patches/fix-syntax.patch new file mode 100644 index 0000000..5127dc8 --- /dev/null +++ b/debian/patches/fix-syntax.patch @@ -0,0 +1,79 @@ +Description: + +Author: +Origin: , +Bug: +Bug-: +Forwarded: +Applied-Upstream: +Reviewed-by: +Last-Update: 2023-11-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/bin/qtls-translate ++++ b/bin/qtls-translate +@@ -35,26 +35,29 @@ + # + # Update translation files. + #=============================================================================== +-function usage +-{ ++ ++usage() { + printf "\nUse: lxqt-transupdate [source directory]\n" + exit 0 + } + +-function lxqt_transupdate +-{ +- if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then usage; fi ++lxqt_transupdate() { ++ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then ++ usage ++ fi + + # Test for supported Qt version +- local qtVersion_=$(qmake -query QT_VERSION|cut -d'.' -f1) +- local qVersions_=(5 6) ++ local qtVersion_=$(qmake -query QT_VERSION | cut -d'.' -f1) ++ local qVersions_="5 6" + +- if echo "${qVersions_[@]}" | grep -qw "$qtVersion_"; then supported_=1; fi ++ case $qVersions_ in ++ *"$qtVersion_"*) supported_=1 ;; ++ esac + + if [ -z "$supported_" ]; then + printf "\nError: Qt%s is not supported. (Supported versions are: " "$qtVersion_" +- printf "%s" "${qVersions_[0]}" +- printf ", %s" "${qVersions_[@]:1}" ++ printf "%s" "${qVersions_%% *}" ++ printf ", %s" "${qVersions_#* }" + printf ')\n\n' + exit 1 + fi +@@ -62,11 +65,15 @@ function lxqt_transupdate + local sourcedir_= + local templates_=$(find . -name \*.ts | grep -v '_') + +- if [ -d "$1" ]; then sourcedir_="$1"; fi ++ if [ -d "$1" ]; then ++ sourcedir_="$1" ++ fi + + for i in $templates_; do +- local transdir_=$(dirname $i) +- if [ "$sourcedir_" == "" ]; then sourcedir_=$(dirname $transdir_); fi ++ local transdir_=$(dirname "$i") ++ if [ "$sourcedir_" = "" ]; then ++ sourcedir_=$(dirname "$transdir_") ++ fi + local cmdUpdateTemplate="lupdate $sourcedir_ -ts $i -locations absolute -no-obsolete" + local cmdUpdateLanguage="lupdate $sourcedir_ -ts $transdir_/*_*.ts -locations absolute -no-obsolete" + +@@ -79,4 +86,5 @@ function lxqt_transupdate + printf "\n" + done + } ++ + lxqt_transupdate "${@}" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..edf9076 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-syntax.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..393af14 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release 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..02a41c6 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Bug-Database: https://github.com/qtilities/qtilitools/issues +Bug-Submit: https://github.com/qtilities/qtilitools/issues/new +Documentation: http://github.com/JPNaude/Qtilities/wiki +Repository-Browse: https://github.com/qtilities/qtilitools/ +Repository: https://github.com/qtilities/qtilitools.git