diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5f37ef1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +hyprwayland-scanner (0.3.10-1) unstable; urgency=medium + + * Initial release. (Closes: #1073195) + + -- Alan M Varghese (NyxTrail) Fri, 14 Jun 2024 10:21:06 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5fccb43 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: hyprwayland-scanner +Section: libdevel +Priority: optional +Maintainer: Alan M Varghese (NyxTrail) +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + cmake, + libpugixml-dev, + pkgconf +Standards-Version: 4.6.2 +Homepage: https://github.com/hyprwm/hyprwayland-scanner +Vcs-Browser: https://salsa.debian.org/NyxTrail/hyprwayland-scanner +Vcs-Git: https://salsa.debian.org/NyxTrail/hyprwayland-scanner.git + +Package: hyprwayland-scanner +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Description: Implementation of wayland-scanner for Hyprland + hyprwayland-scanner is a Hyprland implementation of wayland-scanner, + in and for C++. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9790501 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/hyprwm/hyprwayland-scanner +Upstream-Name: hyprwayland-scanner +Upstream-Contact: vaxerski + +Files: + * +Copyright: + 2024 Hypr Development +License: BSD-3-Clause + +Files: + debian/* +Copyright: + 2024 Alan M Varghese (NyxTrail) +License: BSD-3-Clause + +License: BSD-3-Clause + 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/manpage.md b/debian/manpage.md new file mode 100644 index 0000000..7b56e17 --- /dev/null +++ b/debian/manpage.md @@ -0,0 +1,134 @@ +% hyprwayland-scanner(SECTION) | User Commands +% +% "June 14 2024" + +[comment]: # The lines above form a Pandoc metadata block. They must be +[comment]: # the first ones in the file. +[comment]: # See https://pandoc.org/MANUAL.html#metadata-blocks for details. + +[comment]: # pandoc -s -f markdown -t man package.md -o package.1 +[comment]: # +[comment]: # A manual page package.1 will be generated. You may view the +[comment]: # manual page with: nroff -man package.1 | less. A typical entry +[comment]: # in a Makefile or Makefile.am is: +[comment]: # +[comment]: # package.1: package.md +[comment]: # pandoc --standalone --from=markdown --to=man $< --output=$@ +[comment]: # +[comment]: # The pandoc binary is found in the pandoc package. Please remember +[comment]: # that if you create the nroff version in one of the debian/rules +[comment]: # file targets, such as build, you will need to include pandoc in +[comment]: # your Build-Depends control field. + +[comment]: # lowdown is a low dependency, lightweight alternative to +[comment]: # pandoc as a markdown to manpage translator. Use with: +[comment]: # +[comment]: # package.1: package.md +[comment]: # lowdown -s -Tman -o $@ $< +[comment]: # +[comment]: # And add lowdown to the Build-Depends control field. + +[comment]: # Remove the lines starting with '[comment]:' in this file in order +[comment]: # to avoid warning messages. + +# NAME + +hyprwayland-scanner - program to do something + +# SYNOPSIS + +**hyprwayland-scanner** **-e** _this_ [**\-\-example=that**] [{**-e** | **\-\-example**} _this_] + [{**-e** | **\-\-example**} {_this_ | _that_}] + +**hyprwayland-scanner** [{**-h** | *\-\-help**} | {**-v** | **\-\-version**}] + +# DESCRIPTION + +This manual page documents briefly the **hyprwayland-scanner** and **bar** commands. + +This manual page was written for the Debian distribution because the +original program does not have a manual page. Instead, it has documentation +in the GNU info(1) format; see below. + +**hyprwayland-scanner** is a program that... + +# OPTIONS + +The program follows the usual GNU command line syntax, with long options +starting with two dashes ('-'). A summary of options is included below. For +a complete description, see the **info**(1) files. + +**-e** _this_, **\-\-example=**_that_ +: Does this and that. + +**-h**, **\-\-help** +: Show summary of options. + +**-v**, **\-\-version** +: Show version of program. + +# FILES + +/etc/foo.conf +: The system-wide configuration file to control the behaviour of + hyprwayland-scanner. See **foo.conf**(5) for further details. + +${HOME}/.foo.conf +: The per-user configuration file to control the behaviour of + hyprwayland-scanner. See **foo.conf**(5) for further details. + +# ENVIRONMENT + +**FOO_CONF** +: If used, the defined file is used as configuration file (see also + the section called “FILES”). + +# DIAGNOSTICS + +The following diagnostics may be issued on stderr: + +Bad configuration file. Exiting. +: The configuration file seems to contain a broken configuration + line. Use the **\-\-verbose** option, to get more info. + +**hyprwayland-scanner** provides some return codes, that can be used in scripts: + + Code Diagnostic + 0 Program exited successfully. + 1 The configuration file seems to be broken. + +# BUGS + +The program is currently limited to only work with the foobar library. + +The upstream BTS can be found at http://bugzilla.foo.tld. + +# SEE ALSO + +**bar**(1), **baz**(1), **foo.conf**(5) + +The programs are documented fully by The Rise and Fall of a Fooish Bar +available via the **info**(1) system. + +# AUTHOR + +Alan M Varghese (NyxTrail) +: Wrote this manpage for the Debian system. + +# COPYRIGHT + +Copyright © 2007 Alan M Varghese (NyxTrail) + +This manual page was written for the Debian system (and may be used by +others). + +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 or (at your option) +any later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL. + +[comment]: # Local Variables: +[comment]: # mode: markdown +[comment]: # End: diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ae99bb7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +# export DH_VERBOSE = 1 + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) 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..4d56aa0 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/hyprwm/hyprwayland-scanner/issues +Bug-Submit: https://github.com/hyprwm/hyprwayland-scanner/issues/new +Repository-Browse: https://github.com/hyprwm/hyprwayland-scanner +Repository: https://github.com/hyprwm/hyprwayland-scanner.git diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..8b78a06 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="searchmode=html" \ + https://github.com/hyprwm/hyprwayland-scanner/tags \ + https://github.com/hyprwm/hyprwayland-scanner/archive/refs/tags/v(\d+)\.(\d+).tar\.gz