summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-02-25 14:05:25 -0600
committerJeff Carr <[email protected]>2023-02-25 14:05:25 -0600
commitf3bb68396afa7452ecf1c8d4744c825a9d81057c (patch)
tree00b55a17cee7a8e2f795c479a84a844779993c1c /debian
parent355e5ec968427c2b07b78fec12224f31a65df740 (diff)
The debugging window is finally useful
the gui enabled debugging works --gui-debug works from the command line The debug window can now select things debugging now includes widget types all the debug flags work finally working debugging flags via gui checkboxes add debian packaging rules use log() in the toolkit use a standard log() to simplify debugging flags add reference to 'GO Style Guide' use the same LICENSE from the GO developers. TODO: make this threadsafe TODO: fix plugin stuff Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debian')
-rw-r--r--debian/Makefile49
-rw-r--r--debian/compat1
-rw-r--r--debian/control9
-rwxr-xr-xdebian/postinst1
4 files changed, 60 insertions, 0 deletions
diff --git a/debian/Makefile b/debian/Makefile
new file mode 100644
index 0000000..0b81eba
--- /dev/null
+++ b/debian/Makefile
@@ -0,0 +1,49 @@
+# 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 ../toolkit/*.so ../files/usr/lib/go-gui/
+ cp ../README.md ../files/usr/lib/go-gui/
+ cp ../cmds/textbox/textbox ../files/usr/lib/go-gui/textbox-demo
+
+# 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/postinst b/debian/postinst
new file mode 100755
index 0000000..1a24852
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1 @@
+#!/bin/sh