diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | README.md | 0 | ||||
| -rw-r--r-- | debian/Makefile | 48 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 9 | ||||
| -rw-r--r-- | debian/index.html | 25 | ||||
| -rwxr-xr-x | debian/postinst | 1 |
7 files changed, 89 insertions, 3 deletions
@@ -3,9 +3,6 @@ all: # reset @echo - @echo "make examples # will run all the Example demos and commands" - @echo "make update # full git update of all the dependencies" - @echo @echo This Requires working IPv6 @echo ifeq ($(GO111MODULE),) @@ -113,3 +110,8 @@ log: submit-to-docs: GOPROXY=https://proxy.golang.org GO111MODULE=on go get go.wit.com/[email protected] + +deb: + cd debian && make + dpkg-deb -c go-wit-gui*.deb + -wit mirrors diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/README.md diff --git a/debian/Makefile b/debian/Makefile new file mode 100644 index 0000000..7f4691f --- /dev/null +++ b/debian/Makefile @@ -0,0 +1,48 @@ +# GITVERSION=$(shell git rev-parse FETCH_HEAD) +VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//') + +BASENAME=go-wit-gui + +all: help deb + +help: + @echo + @echo "make deb # attempt to build the .deb package using dpkg" + @echo + +deb: clean extract DEBIAN build + +clean: + rm -rf ../files + rm -f ../*.deb + rm -f ../*.tar.xz data.tar.xz + rm -rf DEBIAN + +extract: + mkdir -p ../files/usr/lib/go-gui + cp ../*.so ../files/usr/lib/go-gui/ + cp ../README.md ../files/usr/lib/go-gui/ + +# makes the DEBIAN/ directory +DEBIAN: + mkdir -p DEBIAN + + # make the md5sum file + cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums + mv ../md5sums DEBIAN/ + + # make the control there + mkdir -p DEBIAN + cp control DEBIAN/ + echo Version: ${VERSION} >>DEBIAN/control + + cp postinst DEBIAN + +build: + mv DEBIAN ../files/ + cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb + @echo + @echo '#######################' + cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb + @echo '#######################' + @echo diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..906f089 --- /dev/null +++ b/debian/control @@ -0,0 +1,9 @@ +Source: go-wit-gui +Build-Depends: golang +Package: go-wit-gui +Maintainer: Jeff Carr <[email protected]> +Architecture: amd64 +Depends: +Recommends: libgtk-3-0 +Description: a abstraction layer for Go visual elements (GTK, QT, etc) + Package gui implements a abstraction layer for Go visual elements. diff --git a/debian/index.html b/debian/index.html new file mode 100644 index 0000000..e2a3dd5 --- /dev/null +++ b/debian/index.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>go.wit.com/gui</title> +<meta name="go-import" content="go.wit.com/gui git https://github.com/wit-go/gui"> +<meta name="go-source" content="go.wit.com/gui https://github.com/wit-go/gui https://github.com/wit-go/gui/tree/master{/dir} https://github.com/wit-go/gui/blob/master{/dir}/{file}#L{line}"> +<style> +* { font-family: sans-serif; } +body { margin-top: 0; } +.content { display: inline-block; } +code { display: block; font-family: monospace; font-size: 1em; background-color: #d5d5d5; padding: 1em; margin-bottom: 16px; } +ul { margin-top: 16px; margin-bottom: 16px; } +</style> +</head> +<body> +<div class="content"> +<h2>go.wit.com/gui</h2> +<code>go get -v go.wit.com/gui</code> +<code>import "go.wit.com/gui"</code> +Home: <a href="https://godoc.org/go.wit.com/gui">https://godoc.org/go.wit.com/gui</a><br/> +Source: <a href="https://github.com/wit-go/gui">https://github.com/wit-go/gui</a><br/> +</div> +</body> +</html> diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..1a24852 --- /dev/null +++ b/debian/postinst @@ -0,0 +1 @@ +#!/bin/sh |
