From e48e17746b05871141145561752da0b4c9b32924 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Sun, 3 Dec 2023 14:36:12 -0600 Subject: [PATCH] Initial commit; does not work --- README.md | 25 ++++++++++++++++++++++++ src/golang-github-slymarbo-rss/changelog | 6 ++++++ src/golang-github-slymarbo-rss/compat | 1 + src/golang-github-slymarbo-rss/control | 14 +++++++++++++ src/golang-github-slymarbo-rss/rules | 12 ++++++++++++ src/openring/changelog | 6 ++++++ src/openring/compat | 1 + src/openring/control | 12 ++++++++++++ src/openring/rules | 8 ++++++++ 9 files changed, 85 insertions(+) create mode 100644 README.md create mode 100644 src/golang-github-slymarbo-rss/changelog create mode 100644 src/golang-github-slymarbo-rss/compat create mode 100644 src/golang-github-slymarbo-rss/control create mode 100644 src/golang-github-slymarbo-rss/rules create mode 100644 src/openring/changelog create mode 100644 src/openring/compat create mode 100644 src/openring/control create mode 100644 src/openring/rules diff --git a/README.md b/README.md new file mode 100644 index 0000000..56812ef --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# debs + +This was an attempt to build deb packages for Go programs. + +References: + + + [Debian Go Packaging](https://go-team.pages.debian.net/packaging.html) + + [golang-sourcehut-sircmpwn-getopt package](https://salsa.debian.org/go-team/packages/golang-sourcehut-sircmpwn-getopt) as a demo + + [golang-github-mattn-go-runewidth package](https://salsa.debian.org/go-team/packages/golang-github-mattn-go-runewidth) as another demo + + [Pragmatic Debian Packaging](golang-github-mattn-go-runewidth), a blog post by Vincent Bernat + + ...and the examples accompanying that blog post [here](https://github.com/vincentbernat/pragmatic-debian-packages) + +I had hoped that it would be as simple as: + +``` +docker run --rm \ + --mount type=bind,src=$(pwd)/src,dst=/build/src \ + --mount type=bind,src=$(pwd)/pkg,dst=/build/pkg \ + registry.intra.dominic-ricottone.com/debbuilder:latest \ + golang-github-slymarbo-rss +``` + +It made an equivs folder but froze after that. +Not really sure what went wrong. + diff --git a/src/golang-github-slymarbo-rss/changelog b/src/golang-github-slymarbo-rss/changelog new file mode 100644 index 0000000..67b5703 --- /dev/null +++ b/src/golang-github-slymarbo-rss/changelog @@ -0,0 +1,6 @@ +golang-github-slymarbo-rss (1.0.5-1) unstable; urgency=medium + + * Initial release + + -- Dominic Ricottone Sun, 03 Dec 2023 13:31:42 -0600 + diff --git a/src/golang-github-slymarbo-rss/compat b/src/golang-github-slymarbo-rss/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/src/golang-github-slymarbo-rss/compat @@ -0,0 +1 @@ +11 diff --git a/src/golang-github-slymarbo-rss/control b/src/golang-github-slymarbo-rss/control new file mode 100644 index 0000000..e8fe942 --- /dev/null +++ b/src/golang-github-slymarbo-rss/control @@ -0,0 +1,14 @@ +Source: golang-github-slymarbo-rss +Maintainer: Dominic Ricottone +Build-Depends: debhelper (>= 11), + dh-golang, + golang-any, + golang-github-axgle-mahonia-dev +Homepage: https://github.com/SlyMarbo/rss +XS-Go-Import-Path: github.com/SlyMarbo/rss + +Package: golang-github-slymarbo-rss-dev +Architecture: any +Depends: golang-github-axgle-mahonia-dev +Description: A Go library for fetching, parsing, and updating RSS feeds. (library) + diff --git a/src/golang-github-slymarbo-rss/rules b/src/golang-github-slymarbo-rss/rules new file mode 100644 index 0000000..3e6b03c --- /dev/null +++ b/src/golang-github-slymarbo-rss/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +# run `go generate`; in modern packaging this is a sane default +export DH_GOLANG_GO_GENERATE := 1 + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + +# library only +override_dh_auto_install: + dh_auto_install -- --no-binaries + diff --git a/src/openring/changelog b/src/openring/changelog new file mode 100644 index 0000000..cee2aa5 --- /dev/null +++ b/src/openring/changelog @@ -0,0 +1,6 @@ +changelog (1.0.1-1) unstable; urgency=medium + + * Initial release + + -- Dominic Ricottone Sun, 03 Dec 2023 14:17:12 -0600 + diff --git a/src/openring/compat b/src/openring/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/src/openring/compat @@ -0,0 +1 @@ +11 diff --git a/src/openring/control b/src/openring/control new file mode 100644 index 0000000..ca6c86d --- /dev/null +++ b/src/openring/control @@ -0,0 +1,12 @@ +Source: openring +Maintainer: Dominic Ricottone +Build-Depends: debhelper (>= 11), + dh-golang, + golang-any, + golang-github-slymarbo-rss +Homepage: https://git.sr.ht/~sircmpwn/openring + +Package: openring +Architecture: any +Description: A tool for generating a webring from RSS feeds. + diff --git a/src/openring/rules b/src/openring/rules new file mode 100644 index 0000000..4c1a84f --- /dev/null +++ b/src/openring/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +# run `go generate`; in modern packaging this is a sane default +export DH_GOLANG_GO_GENERATE := 1 + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + -- 2.45.2