Tests debian packaging
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Wed, 20 Oct 2021 15:17:51 +0000 (11:17 -0400)
committerHugo Villeneuve <hvilleneuve@dimonoff.com>
Wed, 20 Oct 2021 15:31:41 +0000 (11:31 -0400)
Makefile.am
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]

index 1de623d..544618f 100644 (file)
@@ -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 (file)
index 0000000..957389c
--- /dev/null
@@ -0,0 +1,5 @@
+hvclock (1.2.1-1) unstable; urgency=medium
+
+  * Initial Debian release
+
+ -- Hugo Villeneuve <hugo@hugovil.com>  Wed, 20 Oct 2021 10:54:14 -0400
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..9e4d711
--- /dev/null
@@ -0,0 +1,14 @@
+Source: hvclock
+Section: gnustep
+Priority: optional
+Maintainer: Hugo Villeneuve <hugo@hugovil.com>
+Build-Depends: debhelper-compat (= 13), autotools-dev
+Standards-Version: 4.5.1
+Homepage: <http://www.hugovil.com/hvclock>
+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 (file)
index 0000000..cda0405
--- /dev/null
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: hvclock
+Upstream-Contact: <hugo@hugovil.com>
+Source: <http://www.hugovil.com/hvclock>
+
+Files: *
+Copyright: 2021 Hugo Villeneuve <hugo@hugovil.com>
+License: GPL-2.0+
+
+Files: debian/*
+Copyright: 2021 Hugo Villeneuve <hugo@hugovil.com>
+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 <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".