From cfcac121b9a35f489c958ba693958ec53f7d9f4b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 17:40:10 -0600 Subject: [PATCH] more .deb rules Signed-off-by: Jeff Carr --- Makefile | 2 +- debian/Makefile | 6 +++++- debian/control | 4 ++-- debian/index.html | 25 ------------------------- debian/postinst | 2 ++ 5 files changed, 10 insertions(+), 29 deletions(-) delete mode 100644 debian/index.html diff --git a/Makefile b/Makefile index b6f7fe5..1960d7a 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ update: debian: cd debian && make - dpkg-deb -c go-wit-gui*.deb + dpkg-deb -c go-gui-toolkit*.deb -wit mirrors examples: \ diff --git a/debian/Makefile b/debian/Makefile index 4c48021..8318fef 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -4,7 +4,7 @@ TOOLKITVERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) VERSION=${TOOLKITVERSION}-gui-${GUIVERSION} -BASENAME=go-wit-gui +BASENAME=go-gui-toolkits all: help deb @@ -42,7 +42,11 @@ DEBIAN: echo ToolkitVersion: ${TOOLKITVERSION} >>DEBIAN/control echo GuiVersion: ${GUIVERSION} >>DEBIAN/control + chmod +x DEBIAN + cp postinst DEBIAN + echo cd /usr/lib/go-gui/ >>DEBIAN/postinst + echo ln -sf ${GUIVERSION}/${TOOLKITVERSION} latest >>DEBIAN/postinst build: mv DEBIAN ../files/ diff --git a/debian/control b/debian/control index 906f089..29fa478 100644 --- a/debian/control +++ b/debian/control @@ -1,6 +1,6 @@ -Source: go-wit-gui +Source: go-gui-toolkits Build-Depends: golang -Package: go-wit-gui +Package: go-gui-toolkits Maintainer: Jeff Carr Architecture: amd64 Depends: diff --git a/debian/index.html b/debian/index.html deleted file mode 100644 index e2a3dd5..0000000 --- a/debian/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - -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 index 1a24852..efe42c6 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1 +1,3 @@ #!/bin/sh +# +# ln -s latest to /usr/lib/go-gui/latest