From 891a4cada95f786bae78851e6d28bf2bfc2aafcb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 18 Nov 2024 18:21:56 -0600 Subject: [PATCH] more examples Signed-off-by: Jeff Carr --- examples/gomobile/Makefile | 13 +++++++++++++ examples/gomobile/build | 8 ++++++++ examples/gomobile/control | 11 +++++++++++ examples/pkgsite/Makefile | 13 +++++++++++++ examples/pkgsite/build | 9 +++++++++ examples/pkgsite/control | 11 +++++++++++ 6 files changed, 65 insertions(+) create mode 100644 examples/gomobile/Makefile create mode 100755 examples/gomobile/build create mode 100644 examples/gomobile/control create mode 100644 examples/pkgsite/Makefile create mode 100755 examples/pkgsite/build create mode 100644 examples/pkgsite/control diff --git a/examples/gomobile/Makefile b/examples/gomobile/Makefile new file mode 100644 index 0000000..ecaad6a --- /dev/null +++ b/examples/gomobile/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/gomobile/build b/examples/gomobile/build new file mode 100755 index 0000000..467d030 --- /dev/null +++ b/examples/gomobile/build @@ -0,0 +1,8 @@ +#!/bin/bash -x + +# gomobile binary from go + +mkdir -p files/usr/bin +cd ~/go/bin/golang.org/x/mobile/cmd/gomobile/ +go build +cp ~/go/src/golang.org/x/mobile/cmd/gomobile/gomobile files/usr/bin diff --git a/examples/gomobile/control b/examples/gomobile/control new file mode 100644 index 0000000..71ee824 --- /dev/null +++ b/examples/gomobile/control @@ -0,0 +1,11 @@ +Source: +Package: gomobile +Build-Depends: +Maintainer: golang +Packager: Jeff Carr +Architecture: amd64 +Depends: +URL: golang.org/x/mobile +Version: 0.0.1 +Description: gomobile + This was packaged with go-deb from go.wit.com diff --git a/examples/pkgsite/Makefile b/examples/pkgsite/Makefile new file mode 100644 index 0000000..ecaad6a --- /dev/null +++ b/examples/pkgsite/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/pkgsite/build b/examples/pkgsite/build new file mode 100755 index 0000000..2d9fffc --- /dev/null +++ b/examples/pkgsite/build @@ -0,0 +1,9 @@ +#!/bin/bash -x + +# pkgsite binary from go +# go-clone golang.org/x/pkgsite +# cd ~/go/src/golang.org/x/pkgsite/cmd/pkgsite +# go build + +mkdir -p files/usr/bin +cp ~/go/src/golang.org/x/pkgsite/cmd/pkgsite/pkgsite files/usr/bin/ diff --git a/examples/pkgsite/control b/examples/pkgsite/control new file mode 100644 index 0000000..dee1b4f --- /dev/null +++ b/examples/pkgsite/control @@ -0,0 +1,11 @@ +Source: +Package: pkgsite +Build-Depends: +Maintainer: golang +Packager: Jeff Carr +Architecture: amd64 +Depends: +URL: golang.org/x/pkgsite +Version: 0.0.1 +Description: pkgsite + This was packaged with go-deb from go.wit.com