From: Hugo Villeneuve Date: Wed, 20 Oct 2021 15:17:51 +0000 (-0400) Subject: Tests debian packaging X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e7239cad4850930fef741ab3fa4f0edb25faaf47;p=dockapps%2Fhvclock.git Tests debian packaging --- diff --git a/Makefile.am b/Makefile.am index 1de623d..544618f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,3 +38,23 @@ changelog: --strip-cherry-pick \ >ChangeLog; \ fi + +# Create debian package +TMP_DIR = deb +pkg-deb: + - rm -rf $(TMP_DIR) + mkdir -p $(TMP_DIR) + cp $(PACKAGE)-$(VERSION).tar.bz2 $(TMP_DIR)/ + tar --directory $(TMP_DIR)/ \ + -xjf $(TMP_DIR)/$(PACKAGE)-$(VERSION).tar.bz2 + cd $(TMP_DIR)/$(PACKAGE)-$(VERSION)/; \ + dh_make --yes --single --copyright gpl2 -e hugo@hugovil.com -f \ + ../$(PACKAGE)-$(VERSION).tar.bz2 + cp debian/changelog debian/control \ + debian/copyright $(TMP_DIR)/$(PACKAGE)-$(VERSION)/debian/ + cd $(TMP_DIR)/$(PACKAGE)-$(VERSION)/; \ + rm debian/README.Debian debian/*.ex debian/*.EX; \ + ./configure; \ + dpkg-buildpackage -rfakeroot; \ + mv ../*.deb $(PWD)/ + rm -r $(TMP_DIR); diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..957389c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +hvclock (1.2.1-1) unstable; urgency=medium + + * Initial Debian release + + -- Hugo Villeneuve Wed, 20 Oct 2021 10:54:14 -0400 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9e4d711 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: hvclock +Section: gnustep +Priority: optional +Maintainer: Hugo Villeneuve +Build-Depends: debhelper-compat (= 13), autotools-dev +Standards-Version: 4.5.1 +Homepage: +Vcs-Git: http://gitweb.hugovil.com/?p=hvclock.git;a=summary +Rules-Requires-Root: no + +Package: hvclock +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Dockable analog clock and calendar diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cda0405 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: hvclock +Upstream-Contact: +Source: + +Files: * +Copyright: 2021 Hugo Villeneuve +License: GPL-2.0+ + +Files: debian/* +Copyright: 2021 Hugo Villeneuve +License: GPL-2.0+ + +License: GPL-2.0+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".