From 53ca277ca196ed4b063c1b75b88ee5efc5c3cb09 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 17 Nov 2024 04:16:24 -0600 Subject: [PATCH] add gocomplete example --- examples/gocomplete/Makefile | 13 +++++++++++++ examples/gocomplete/build | 6 ++++++ examples/gocomplete/control | 12 ++++++++++++ examples/mirrors.wit.com/control | 2 +- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 examples/gocomplete/Makefile create mode 100755 examples/gocomplete/build create mode 100644 examples/gocomplete/control diff --git a/examples/gocomplete/Makefile b/examples/gocomplete/Makefile new file mode 100644 index 0000000..ecaad6a --- /dev/null +++ b/examples/gocomplete/Makefile @@ -0,0 +1,13 @@ +.PHONY: build + +# this is how the mirrors.wit.com debian package is created + +all: build + +build: + go-deb --repo . + +# use the ncurses gui (only kinda works still) +ncurses: + go-deb --gui gocui --repo . + diff --git a/examples/gocomplete/build b/examples/gocomplete/build new file mode 100755 index 0000000..bbc0ed8 --- /dev/null +++ b/examples/gocomplete/build @@ -0,0 +1,6 @@ +#!/bin/bash -x + +# this is the awesome gocomplete from github.com/posener/complete + +mkdir -p files/usr/bin +cp ~/go/bin/gocomplete files/usr/bin diff --git a/examples/gocomplete/control b/examples/gocomplete/control new file mode 100644 index 0000000..9f4c4f4 --- /dev/null +++ b/examples/gocomplete/control @@ -0,0 +1,12 @@ +Source: +Package: gocomplete +Build-Depends: +Maintainer: Jeff Carr +Packager: Jeff Carr +Architecture: amd64 +Depends: +URL: github.com/posener/complete +Recommends: golang +Version: 0.0.1 +Description: gocomplete from posener + This was packaged with go-deb from go.wit.com diff --git a/examples/mirrors.wit.com/control b/examples/mirrors.wit.com/control index 5e06931..9974c56 100644 --- a/examples/mirrors.wit.com/control +++ b/examples/mirrors.wit.com/control @@ -7,6 +7,6 @@ Architecture: all Depends: URL: https://mirrors.wit.com/ Recommends: -Version: 0.0.6 +Version: 0.0.7 Description: apt keys and source file This was packaged with go-deb from go.wit.com