summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--debian/Makefile6
-rw-r--r--debian/control4
-rw-r--r--debian/index.html25
-rwxr-xr-xdebian/postinst2
5 files changed, 10 insertions, 29 deletions
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 <[email protected]>
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 @@
-<!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
index 1a24852..efe42c6 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -1 +1,3 @@
#!/bin/sh
+#
+# ln -s latest to /usr/lib/go-gui/latest