Adjust build rules to be self-contained

Also fixes VERSION in the Makefile, since the original code there
didn't actually extract the version number from the source files
correctly.
This commit is contained in:
June R. Tate-Gans 2024-03-26 08:38:27 -05:00
parent 6616850ffc
commit 691e021726
4 changed files with 13 additions and 12 deletions

View File

@ -1,4 +1,4 @@
VERSION := `grep "VERSION" g13gui/common.py |awk '{ print $$2 }' |sed 's/'//g'` VERSION := `grep "VERSION" g13gui/common.py |awk '{ print $$3 }' |tr -d "'"`
GITBRANCH ?= master GITBRANCH ?= master
PIPENV := pipenv PIPENV := pipenv
PYTHON := `which python3` PYTHON := `which python3`
@ -36,19 +36,20 @@ manjaro-install:
makepkg -i makepkg -i
debian: debian:
export GITBRANCH=master mkdir -p build
debuild gbp buildpackage --git-verbose --git-debian-branch=$(GITBRANCH) -us -ui -uc
debclean mv ../g13gui_$(VERSION)* build
debian-build: debian-install:
gbp buildpackage --git-debian-branch=$(GITBRANCH) sudo dpkg -i g13gui_$(VERSION).deb
debian-clean: debian-clean:
debclean debclean
rm -rf build
debian-build-source: debian-clean debian-build-source: debian-clean
gbp buildpackage -S --git-debian-branch=$(GITBRANCH) mkdir -p build
mkdir build gbp buildpackage -S --git-verbose --git-debian-branch=$(GITBRANCH) -us -uc
mv ../g13gui_$(VERSION)* build mv ../g13gui_$(VERSION)* build
debian-release: debian-build-source debian-release: debian-build-source

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
g13 (0.1.0ubuntu1) focal; urgency=medium g13gui (0.1.0ubuntu1) focal; urgency=medium
* Initial release of the Debian packaging for g13gui * Initial release of the Debian packaging for g13gui

4
debian/control vendored
View File

@ -1,4 +1,4 @@
Source: g13 Source: g13gui
Section: misc Section: misc
Priority: optional Priority: optional
Maintainer: June Tate-Gans <june@theonelab.com> Maintainer: June Tate-Gans <june@theonelab.com>
@ -12,7 +12,7 @@ Homepage: https://github.com/jtgans/g13gui
Vcs-Browser: https://github.com/jtgans/g13gui Vcs-Browser: https://github.com/jtgans/g13gui
Vcs-Git: https://github.com/jtgans/g13gui.git Vcs-Git: https://github.com/jtgans/g13gui.git
Package: g13 Package: g13gui
Architecture: all Architecture: all
Depends: ${misc:Depends}, Depends: ${misc:Depends},
${python3:Depends}, ${python3:Depends},

2
debian/copyright vendored
View File

@ -1,5 +1,5 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: g13 Upstream-Name: g13gui
Upstream-Contact: June Tate-Gans <june@theonelab.com> Upstream-Contact: June Tate-Gans <june@theonelab.com>
Upstream-Source: https://github.com/jtgans/g13gui Upstream-Source: https://github.com/jtgans/g13gui