move the debian packaging to gui/toolkits
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
25ebe0a2ee
commit
b30346bc96
|
@ -1,15 +1 @@
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
# ignore compiled plugins
|
|
||||||
*.so
|
|
||||||
|
|
||||||
examples/buttons/buttons
|
|
||||||
examples/console-ui-helloworld/console-ui-helloworld
|
|
||||||
examples/helloworld/helloworld
|
|
||||||
|
|
||||||
# protobuf compiled files
|
|
||||||
protobuf/*.pb.go
|
|
||||||
|
|
||||||
# temporary files when building debian packages
|
|
||||||
/*.deb
|
|
||||||
/files
|
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -37,11 +37,6 @@ update:
|
||||||
git pull
|
git pull
|
||||||
go get -v -t -u ./...
|
go get -v -t -u ./...
|
||||||
|
|
||||||
deb:
|
|
||||||
cd debian && make
|
|
||||||
dpkg-deb -c go-wit-gui*.deb
|
|
||||||
-wit mirrors
|
|
||||||
|
|
||||||
examples: \
|
examples: \
|
||||||
all \
|
all \
|
||||||
examples-helloworld \
|
examples-helloworld \
|
||||||
|
@ -87,7 +82,6 @@ goget:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f toolkit/*.so
|
rm -f toolkit/*.so
|
||||||
cd debian && make clean
|
|
||||||
|
|
||||||
plugins: plugins-gocui plugins-andlabs
|
plugins: plugins-gocui plugins-andlabs
|
||||||
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
# 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
|
|
|
@ -1 +0,0 @@
|
||||||
10
|
|
|
@ -1,9 +0,0 @@
|
||||||
Source: go-wit-gui
|
|
||||||
Build-Depends: golang
|
|
||||||
Package: go-wit-gui
|
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
|
||||||
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.
|
|
|
@ -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>
|
|
|
@ -1 +0,0 @@
|
||||||
#!/bin/sh
|
|
Loading…
Reference in New Issue