build(debian): add a Debian and Ubuntu package definition

Add a debhelper-free debian/ tree so a .deb can be built with the Go toolchain and dpkg-dev alone. debian/rules compiles the binary with -trimpath and the version from debian/changelog, then stages the binary, the lazyntfy(1) man page, the license, and the README. The package Depends on ca-certificates for TLS to the ntfy server.
This commit is contained in:
ahp
2026-10-11 12:20:34 +03:30
parent ee9e130a92
commit e6499b50bb
5 changed files with 85 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lazyntfy
Source: https://src.panahifar.ir/ahp/lazyntfy
Files: *
Copyright: 2026 Amir Husayn Panahifar <ahp@panahifar.ir>
License: GPL-3.0-or-later
This program 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 3 of the License, or (at your
option) any later version.
.
This program 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.
.
On Debian systems the full text of the GNU General Public License can be
found in /usr/share/common-licenses/GPL-3.