From 6bd84d57b598b69023cb2269c0ba4c12d0fc5b57 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 28 Jun 2024 12:04:26 +0100 Subject: [PATCH] feat: add initial debian packaging template; for PPA --- assets/resources/quickgui.desktop | 10 ++--- linux/packaging/debian/changelog | 5 +++ linux/packaging/debian/control | 27 +++++++++++ linux/packaging/debian/copyright | 45 +++++++++++++++++++ linux/packaging/debian/install | 5 +++ linux/packaging/debian/quickgui.links | 1 + linux/packaging/debian/rules | 9 ++++ linux/packaging/debian/source/format | 1 + .../packaging/debian/source/include-binaries | 4 ++ 9 files changed, 102 insertions(+), 5 deletions(-) create mode 100644 linux/packaging/debian/changelog create mode 100644 linux/packaging/debian/control create mode 100644 linux/packaging/debian/copyright create mode 100644 linux/packaging/debian/install create mode 100644 linux/packaging/debian/quickgui.links create mode 100755 linux/packaging/debian/rules create mode 100644 linux/packaging/debian/source/format create mode 100644 linux/packaging/debian/source/include-binaries diff --git a/assets/resources/quickgui.desktop b/assets/resources/quickgui.desktop index c5ddcde..1c8b4e0 100644 --- a/assets/resources/quickgui.desktop +++ b/assets/resources/quickgui.desktop @@ -1,9 +1,9 @@ [Desktop Entry] Version=1.0 -Name=quickgui -Comment=A Flutter frontend for quickemu -Exec=/usr/bin/quickgui +Name=Quickgui +Comment=An elegant virtual machine manager for the desktop +Exec=quickgui Terminal=false Type=Application -Icon=quickgui_512.png -Categories=System; +Icon=quickgui +Categories=Development;System; diff --git a/linux/packaging/debian/changelog b/linux/packaging/debian/changelog new file mode 100644 index 0000000..4c7a315 --- /dev/null +++ b/linux/packaging/debian/changelog @@ -0,0 +1,5 @@ +quickgui (1.2.9-1) unstable; urgency=medium + + * New upstream release. + + -- Martin Wimpress Fri, 25 Feb 2022 08:27:45 +0100 diff --git a/linux/packaging/debian/control b/linux/packaging/debian/control new file mode 100644 index 0000000..448a690 --- /dev/null +++ b/linux/packaging/debian/control @@ -0,0 +1,27 @@ +Source: quickgui +Section: utils +Priority: optional +Maintainer: Martin Wimpress +Build-Depends: + debhelper-compat (= 12), +Standards-Version: 4.5.1 +Homepage: https://github.com/quickemu-project/quickgui +Vcs-Browser: https://github.com/quickemu-project/quickgui +Vcs-Git: https://github.com/quickemu-project/quickgui.git +Rules-Requires-Root: no + +Package: quickgui +Architecture: any +Depends: + zenity, + ${misc:Depends}, + ${shlibs:Depends}, +Recommends: + quickemu, +Description: An elegant virtual machine manager for the desktop + An elegant desktop application to quickly create an run optimised virtual + machines using Quickget and Quickemu. + . + Nearly 1000 operating systems supported including Windows, macOS, BSDs, and + 100s of Linux distros. All with automated download and configuration. + . diff --git a/linux/packaging/debian/copyright b/linux/packaging/debian/copyright new file mode 100644 index 0000000..0aeb998 --- /dev/null +++ b/linux/packaging/debian/copyright @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: quickgui +Upstream-Contact: Martin Wimpress +Source: https://github.com/quickemu-project/quickgui + +Files: * +Copyright: 2021 - 2024 Yannick Mauray +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. + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2021 - 2024 Martin Wimpress +License: GPL-2+ + This package 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, 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 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/linux/packaging/debian/install b/linux/packaging/debian/install new file mode 100644 index 0000000..d98e217 --- /dev/null +++ b/linux/packaging/debian/install @@ -0,0 +1,5 @@ +quickgui usr/share/quickgui +data/ usr/share/quickgui +lib/ usr/share/quickgui +icons/ usr/share +quickgui.desktop usr/share/applications diff --git a/linux/packaging/debian/quickgui.links b/linux/packaging/debian/quickgui.links new file mode 100644 index 0000000..0266ce4 --- /dev/null +++ b/linux/packaging/debian/quickgui.links @@ -0,0 +1 @@ +/usr/share/quickgui/quickgui /usr/bin/quickgui diff --git a/linux/packaging/debian/rules b/linux/packaging/debian/rules new file mode 100755 index 0000000..d940b12 --- /dev/null +++ b/linux/packaging/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +export DH_VERBOSE = 1 + +%: + dh $@ + +override_dh_usrlocal: + +override_dh_shlibdeps: diff --git a/linux/packaging/debian/source/format b/linux/packaging/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/linux/packaging/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/linux/packaging/debian/source/include-binaries b/linux/packaging/debian/source/include-binaries new file mode 100644 index 0000000..9d42e4e --- /dev/null +++ b/linux/packaging/debian/source/include-binaries @@ -0,0 +1,4 @@ +lib/libapp.so +lib/libflutter_linux_gtk.so +lib/liburl_launcher_linux_plugin.so +lib/libwindow_size_plugin.so