From 79beafcbe7dceee1d540d3522ebddd149f7e58be Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 27 Nov 2018 01:00:31 +0100 Subject: debian packaging --- Makefile.package | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile.package (limited to 'Makefile.package') diff --git a/Makefile.package b/Makefile.package new file mode 100644 index 0000000..ec1e4dd --- /dev/null +++ b/Makefile.package @@ -0,0 +1,29 @@ +PACKAGE_DESCRIPTION ?= "Quick packaging for $(PACKAGE_NAME)" +PACKAGE_MAINTAINER ?= "$(shell echo $USER)@$(shell hostname)" +OUT_DEB=$(PACKAGE_NAME)-$(PACKAGE_VERSION).deb + +all: $(OUT_DEB) +clean: + rm -rvf target work $(OUT_DEB) +target: + mkdir $@ +target/debian-binary: | target + echo 2.0 > $@ +target/control.tar.gz: work/control/control + tar cvzf $@ -C work/control . +target/data.tar.gz: work/data + tar cvzf $@ -C work/data . +work: + mkdir $@ +work/control: work + mkdir $@ +work/data: work + mkdir -p $@ +work/control/control: work/control + echo "Package: $(PACKAGE_NAME)" >$@ + echo "Version: $(PACKAGE_VERSION)" >>$@ + echo "Architecture: amd64" >>$@ + echo "Maintainer: $(PACKAGE_MAINTAINER)" >>$@ + echo "Description: $(PACKAGE_DESCRIPTION)" >>$@ +$(OUT_DEB): target/debian-binary target/control.tar.gz target/data.tar.gz + ar q $@ $^ -- cgit v1.2.1