moving the debian stuff here
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
36218f4535
commit
4ca15cc78d
8
Makefile
8
Makefile
|
@ -3,9 +3,6 @@
|
|||
all:
|
||||
# reset
|
||||
@echo
|
||||
@echo "make examples # will run all the Example demos and commands"
|
||||
@echo "make update # full git update of all the dependencies"
|
||||
@echo
|
||||
@echo This Requires working IPv6
|
||||
@echo
|
||||
ifeq ($(GO111MODULE),)
|
||||
|
@ -113,3 +110,8 @@ log:
|
|||
|
||||
submit-to-docs:
|
||||
GOPROXY=https://proxy.golang.org GO111MODULE=on go get go.wit.com/gui@v1.0.0
|
||||
|
||||
deb:
|
||||
cd debian && make
|
||||
dpkg-deb -c go-wit-gui*.deb
|
||||
-wit mirrors
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
# 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 ../*.so ../files/usr/lib/go-gui/
|
||||
cp ../README.md ../files/usr/lib/go-gui/
|
||||
|
||||
# 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
|
|
@ -0,0 +1 @@
|
|||
10
|
|
@ -0,0 +1,9 @@
|
|||
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.
|
|
@ -0,0 +1,25 @@
|
|||
<!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>
|
|
@ -0,0 +1 @@
|
|||
#!/bin/sh
|
Loading…
Reference in New Issue