~dricottone/debs

e48e17746b05871141145561752da0b4c9b32924 — Dominic Ricottone 11 months ago dev
Initial commit; does not work
A  => README.md +25 -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.


A  => src/golang-github-slymarbo-rss/changelog +6 -0
@@ 1,6 @@
golang-github-slymarbo-rss (1.0.5-1) unstable; urgency=medium

  * Initial release

 -- Dominic Ricottone <me@dominic-ricottone.com>  Sun, 03 Dec 2023 13:31:42 -0600


A  => src/golang-github-slymarbo-rss/compat +1 -0
@@ 1,1 @@
11

A  => src/golang-github-slymarbo-rss/control +14 -0
@@ 1,14 @@
Source: golang-github-slymarbo-rss
Maintainer: Dominic Ricottone <me@dominic-ricottone.com>
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)


A  => src/golang-github-slymarbo-rss/rules +12 -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


A  => src/openring/changelog +6 -0
@@ 1,6 @@
changelog (1.0.1-1) unstable; urgency=medium

  * Initial release

 -- Dominic Ricottone <me@dominic-ricottone.com>  Sun, 03 Dec 2023 14:17:12 -0600


A  => src/openring/compat +1 -0
@@ 1,1 @@
11

A  => src/openring/control +12 -0
@@ 1,12 @@
Source: openring
Maintainer: Dominic Ricottone <me@dominic-ricottone.com>
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.


A  => src/openring/rules +8 -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