more examples

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-18 18:21:56 -06:00
parent 79dd86306e
commit 891a4cada9
6 changed files with 65 additions and 0 deletions

View File

@ -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 .

8
examples/gomobile/build Executable file
View File

@ -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

11
examples/gomobile/control Normal file
View File

@ -0,0 +1,11 @@
Source:
Package: gomobile
Build-Depends:
Maintainer: golang <?@golang.org>
Packager: Jeff Carr <jcarr@wit.com>
Architecture: amd64
Depends:
URL: golang.org/x/mobile
Version: 0.0.1
Description: gomobile
This was packaged with go-deb from go.wit.com

13
examples/pkgsite/Makefile Normal file
View File

@ -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 .

9
examples/pkgsite/build Executable file
View File

@ -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/

11
examples/pkgsite/control Normal file
View File

@ -0,0 +1,11 @@
Source:
Package: pkgsite
Build-Depends:
Maintainer: golang <?@golang.org>
Packager: Jeff Carr <jcarr@wit.com>
Architecture: amd64
Depends:
URL: golang.org/x/pkgsite
Version: 0.0.1
Description: pkgsite
This was packaged with go-deb from go.wit.com