From 0efd48c40d82d251cf296beabf4d41b03f5ec7d9 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Sun, 15 Jan 2023 22:56:49 +0100 Subject: [PATCH] Add files to build Debian package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to the de facto project layout for Go[0], these files should go into a build/package folder, but since i already broke the rules with Sqitch’s folders, i do not see why i have to go against Debian’s conventions of putting it into a debian subfolder of the root. [0]: https://github.com/golang-standards/project-layout --- debian/changelog | 5 +++++ debian/control | 23 +++++++++++++++++++++++ debian/copyright | 10 ++++++++++ debian/rules | 4 ++++ debian/source/format | 1 + 5 files changed, 43 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..07442fa --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +numerus (0.0~git00000000000000.0000000) bullseye; urgency=medium + + * Initial release. + + -- jordi fita mas Sun, 01 Jan 2023 01:07:46 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..fbb11dd --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: numerus +Section: web +Priority: optional +Maintainer: jordi fita mas +Build-Depends: + debhelper-compat (= 13), + dh-golang, + golang-any, + golang-github-jackc-pgx-v4-dev, +Standards-Version: 4.6.0 +XS-Go-Import-Path: dev.tandem.ws/tandem/numerus +Vcs-Browser: https://dev.tandem.ws/tandem/numerus +Vcs-Git: https://dev.tandem.ws/tandem/numerus.git +Homepage: https://dev.tandem.ws/tandem/numerus +Rules-Requires-Root: no + +Package: numerus +Architecture: any +Depends: + ${misc:Depends} +Description: Simple invoicing and accounting web application + A simple web application to keep invoice and accouting records, intended for + contractors working in Spain. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0b3a4a9 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://dev.tandem.ws/tandem/numerus +Upstream-Name: numerus +Upstream-Contact: jordi@tandem.blog + +Files: + * +Copyright: + 2023 jordi fita mas +License: AGPL-3.0-only diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..44584c3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)