Compare commits

..

No commits in common. "693ac6e677ccc793b840d7687b5d70b842868ef4" and "86720c72f9340117b02e188ccac54725e0f37ff5" have entirely different histories.

7 changed files with 10 additions and 27 deletions

3
.gitignore vendored
View File

@ -21,6 +21,3 @@
.vscode/configurationCache.log .vscode/configurationCache.log
.vscode/dryrun.log .vscode/dryrun.log
.vscode/targets.log .vscode/targets.log
# packaging
/debian

View File

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

View File

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

View File

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

View File

@ -1,5 +0,0 @@
lume (__VERSION__) UNRELEASED; urgency=medium
* Package generated with make deb
-- Ryan Cavicchioni <ryan@cavi.cc> __DATE__