diff --git a/packaging/debian/.gitignore b/packaging/debian/.gitignore index ee88064..06a18b9 100644 --- a/packaging/debian/.gitignore +++ b/packaging/debian/.gitignore @@ -1,4 +1,5 @@ /*.debhelper.log /*.substvars +/cool-retro-term.1 /cool-retro-term/ /files diff --git a/packaging/debian/changelog b/packaging/debian/changelog index 15ae9e6..8ce7051 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -1,3 +1,16 @@ +cool-retro-term (1.0-1) unstable; urgency=medium + + * Adopt packaging + * Track upstream changes + * Put in section x11 + * Bump debian standards version + * Allow parallel builds + * Hardened build per policy, for no particularly good reason + * Register as alternative x-terminal-emulator + * Generate & install man page using help2man + + -- Barak A. Pearlmutter Wed, 07 Dec 2016 08:10:20 +0000 + cool-retro-term (0.9-2) UNRELEASED; urgency=medium * Adding missing dependencies diff --git a/packaging/debian/control b/packaging/debian/control index 890a10c..c7a8c27 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -2,7 +2,7 @@ Source: cool-retro-term Maintainer: Jeka Der Section: x11 Priority: optional -Standards-Version: 3.9.6 +Standards-Version: 3.9.7 Homepage: https://github.com/Swordfish90/cool-retro-term Vcs-Git: git://github.com/barak/cool-retro-term.git Vcs-Browser: https://github.com/barak/cool-retro-term diff --git a/packaging/debian/cool-retro-term.1 b/packaging/debian/cool-retro-term.1 deleted file mode 100644 index 005a4e8..0000000 --- a/packaging/debian/cool-retro-term.1 +++ /dev/null @@ -1,31 +0,0 @@ -.TH cool-retro-term 1 "August 22 2016" -.SH NAME -cool-retro-term \- terminal emulator mimicing the old cathode display -.SH SYNOPSIS -"Usage: ./cool\-retro\-term [\-\-default\-settings] [\-\-workdir ] [\-\-program ] [\-p|\-\-profile ] [\-\-fullscreen] [\-h|\-\-help]" -.SH DESCRIPTION -This manual page documents briefly the -.B cool-retro-term -command. -.SH OPTIONS -.TP -\fB\-\-default\-settings\fR -Run cool\-retro\-term with the default settings -.TP -\fB\-\-workdir\fR -Change working directory to 'dir' -.TP -\fB\-e\fR -Command to execute. This option will catch all following arguments, so use it as the last option. -.TP -\fB\-\-fullscreen\fR -Run cool\-retro\-term in fullscreen. -.HP -\fB\-p\fR|\-\-profile Run cool\-retro\-term with the given profile. -.TP -\fB\-h\fR|\-\-help -Print this help. -.TP -\fB\-\-verbose\fR -Print additional informations such as profiles and settings. -.PP diff --git a/packaging/debian/cool-retro-term.manpages b/packaging/debian/cool-retro-term.manpages new file mode 100644 index 0000000..1bbbf17 --- /dev/null +++ b/packaging/debian/cool-retro-term.manpages @@ -0,0 +1 @@ +debian/cool-retro-term.1 diff --git a/packaging/debian/cool-retro-term.postinst b/packaging/debian/cool-retro-term.postinst new file mode 100755 index 0000000..ff510e5 --- /dev/null +++ b/packaging/debian/cool-retro-term.postinst @@ -0,0 +1,16 @@ +#! /bin/sh + +set -e + +case "$1" in + configure) + # Alternatives + update-alternatives --quiet \ + --install /usr/bin/x-terminal-emulator \ + x-terminal-emulator /usr/bin/cool-retro-term 20 \ + --slave /usr/share/man/man1/x-terminal-emulator.1.gz \ + x-terminal-emulator.1.gz /usr/share/man/man1/cool-retro-term.1.gz + ;; +esac + +#DEBHELPER# diff --git a/packaging/debian/cool-retro-term.prerm b/packaging/debian/cool-retro-term.prerm new file mode 100755 index 0000000..2025b4f --- /dev/null +++ b/packaging/debian/cool-retro-term.prerm @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +case "$1" in + remove|deconfigure) + # Alternatives + update-alternatives --quiet --remove x-terminal-emulator /usr/bin/cool-retro-term + ;; +esac + +#DEBHELPER# diff --git a/packaging/debian/rules b/packaging/debian/rules index 4f2c774..95268c0 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -1,4 +1,24 @@ #!/usr/bin/make -f -%: - dh $@ +export QT_SELECT = 5 + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +%: + dh $@ --parallel + +ver := $(shell dpkg-parsechangelog --show-field 'Version') + +debian/cool-retro-term.1: cool-retro-term + help2man --no-info \ + --no-discard-stderr \ + --version-string="$(ver)" \ + --name="Terminal for X with a highly-configurable highly-retro look." \ + --section=1 \ + ./$< \ + > $@ + +override_dh_auto_install: debian/cool-retro-term.1 + dh_auto_install diff --git a/packaging/debian/source/local-options b/packaging/debian/source/local-options new file mode 100644 index 0000000..7423a2d --- /dev/null +++ b/packaging/debian/source/local-options @@ -0,0 +1 @@ +single-debian-patch