Compare commits
No commits in common. "693ac6e677ccc793b840d7687b5d70b842868ef4" and "86720c72f9340117b02e188ccac54725e0f37ff5" have entirely different histories.
693ac6e677
...
86720c72f9
3
.gitignore
vendored
3
.gitignore
vendored
@ -21,6 +21,3 @@
|
|||||||
.vscode/configurationCache.log
|
.vscode/configurationCache.log
|
||||||
.vscode/dryrun.log
|
.vscode/dryrun.log
|
||||||
.vscode/targets.log
|
.vscode/targets.log
|
||||||
|
|
||||||
# packaging
|
|
||||||
/debian
|
|
||||||
|
19
Makefile
19
Makefile
@ -1,7 +1,7 @@
|
|||||||
V ?= 0
|
V ?= 0
|
||||||
Q = $(if $(filter 1, $V),, @)
|
Q = $(if $(filter 1, $V),, @)
|
||||||
BINDIR=$(CURDIR)/bin
|
BINDIR=$(CURDIR)/bin
|
||||||
PREFIX=/usr
|
PREFIX=/usr/bin
|
||||||
DESTDIR=bin
|
DESTDIR=bin
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
@ -26,26 +26,13 @@ build:
|
|||||||
$(Q) go build -o $(EXE) -ldflags="$(LDFLAGS)" ./cmd/lume
|
$(Q) go build -o $(EXE) -ldflags="$(LDFLAGS)" ./cmd/lume
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: deb-clean
|
clean:
|
||||||
$(Q) $(RM) $(EXE)
|
$(Q) $(RM) $(EXE)
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
$(Q) install -p -D -m 0755 $(EXE) $(DESTDIR)${PREFIX}/bin/lume
|
$(Q) install -p -D -m 0755 $(EXE) $(DESTDIR)${PREFIX}/lume
|
||||||
$(Q) install -p -D -m 0644 .lumerc.sample $(DESTDIR)${PREFIX}/share/lume/lumerc
|
|
||||||
|
|
||||||
DEBDIR=$(CURDIR)/debian
|
|
||||||
TMPLDIR=$(CURDIR)/packaging/debian
|
|
||||||
DEBDATE=$(shell date -R)
|
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb:
|
deb:
|
||||||
$(Q) mkdir -p $(DEBDIR)
|
|
||||||
$(Q) sed -e 's/__VERSION__/$(LUME_VERSION)/g' $(TMPLDIR)/rules > $(DEBDIR)/rules
|
|
||||||
$(Q) sed -e 's/__VERSION__/$(LUME_VERSION)/g' -e 's/__DATE__/$(DEBDATE)/g' $(TMPLDIR)/changelog > $(DEBDIR)/changelog
|
|
||||||
$(Q) echo 9 > $(DEBDIR)/compat
|
|
||||||
$(Q) cp $(TMPLDIR)/control $(DEBDIR)/control
|
|
||||||
$(Q) dpkg-buildpackage -us -uc -b
|
$(Q) dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
deb-clean:
|
|
||||||
$(Q) rm -rf $(CURDIR)/debian
|
|
||||||
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
lume (0.1.0) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Fake entry.
|
||||||
|
|
||||||
|
-- Ryan Cavicchioni <ryan@cavi.cc> Thu, 08 Apr 2021 02:14:36 +0000
|
0
packaging/debian/compat → debian/compat
vendored
0
packaging/debian/compat → debian/compat
vendored
1
packaging/debian/control → debian/control
vendored
1
packaging/debian/control → debian/control
vendored
@ -3,5 +3,4 @@ Maintainer: Ryan Cavicchioni <ryan@cavi.cc>
|
|||||||
|
|
||||||
Package: lume
|
Package: lume
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
|
||||||
Description: A CLI tool for the LIFX HTTP API
|
Description: A CLI tool for the LIFX HTTP API
|
4
packaging/debian/rules → debian/rules
vendored
4
packaging/debian/rules → debian/rules
vendored
@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
DISTRIBUTION = $(shell lsb_release -sr)
|
DISTRIBUTION = $(shell lsb_release -sr)
|
||||||
VERSION = __VERSION__
|
VERSION = 0.1.0
|
||||||
PACKAGEVERSION = $(VERSION)
|
PACKAGEVERSION = $(VERSION)-0~$(DISTRIBUTION)0
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
@ -1,5 +0,0 @@
|
|||||||
lume (__VERSION__) UNRELEASED; urgency=medium
|
|
||||||
|
|
||||||
* Package generated with make deb
|
|
||||||
|
|
||||||
-- Ryan Cavicchioni <ryan@cavi.cc> __DATE__
|
|
Loading…
Reference in New Issue
Block a user