From 4ca15cc78dbaaf83640d9c54dc1d81560dc06812 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 16:47:55 -0600 Subject: [PATCH] moving the debian stuff here Signed-off-by: Jeff Carr --- Makefile | 8 +++++--- README.md | 0 debian/Makefile | 48 +++++++++++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 9 +++++++++ debian/index.html | 25 ++++++++++++++++++++++++ debian/postinst | 1 + 7 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 README.md create mode 100644 debian/Makefile create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/index.html create mode 100755 debian/postinst diff --git a/Makefile b/Makefile index 532b3ca..d31ba02 100644 --- a/Makefile +++ b/Makefile @@ -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/gui@v1.0.0 + +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 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 +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 @@ + + + + +go.wit.com/gui + + + + + +
+

go.wit.com/gui

+go get -v go.wit.com/gui +import "go.wit.com/gui" +Home: https://godoc.org/go.wit.com/gui
+Source: https://github.com/wit-go/gui
+
+ + 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