more .deb rules

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-03 17:40:10 -06:00
parent 529e1147a1
commit cfcac121b9
5 changed files with 10 additions and 29 deletions

View File

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

6
debian/Makefile vendored
View File

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

4
debian/control vendored
View File

@ -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 <jcarr@wit.com>
Architecture: amd64
Depends:

25
debian/index.html vendored
View File

@ -1,25 +0,0 @@
<!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>

2
debian/postinst vendored
View File

@ -1 +1,3 @@
#!/bin/sh
#
# ln -s latest to /usr/lib/go-gui/latest