From 8dde00d8e54dbe9bdc878c2187e514e531a23a24 Mon Sep 17 00:00:00 2001 From: Bram Stolk Date: Wed, 7 Sep 2022 14:49:14 -0700 Subject: [PATCH] Support debian package creation. --- Makefile | 16 ++++++++++++++++ debian/changelog | 5 +++++ debian/control | 15 +++++++++++++++ debian/copyright | 11 +++++++++++ debian/files | 1 + debian/rules | 20 ++++++++++++++++++++ debian/source/format | 1 + 7 files changed, 69 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/files create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 80048f4..74ff49e 100644 --- a/Makefile +++ b/Makefile @@ -7,3 +7,19 @@ run: imcat clean: rm -f ./imcat +install: imcat + install -d ${DESTDIR}/usr/bin + install -m 755 imcat ${DESTDIR}/usr/bin/ + +uninstall: + sudo rm -f ${DESTDIR}/usr/bin/imcat + +tarball: + rm -f imcat_1.4.orig.tar.gz + tar cvzf ../imcat_1.4.orig.tar.gz Makefile README.md stb_image.h imcat.c imcat.1 debian images + +packageupload: + debuild -S + debsign ../imcat_1.4-1_source.changes + dput ppa:b-stolk/ppa ../imcat_1.4-1_source.changes + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..93c89e5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +imcat (1.4-1) kinetic; urgency=medium + + * Initial release. + + -- Bram Stolk Wed, 07 Sep 2022 14:10:00 -0700 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a5367ed --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: imcat +Section: contrib/utils +Priority: optional +Maintainer: Bram Stolk +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13) +Standards-Version: 4.6.1 +Homepage: https://github.com/stolk/imcat + +Package: imcat +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Shows images in a terminal. + Shows images in a terminal console that supports 24 bit colour. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ceb5ca4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,11 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: imcat +Upstream-Contact: Bram Stolk +Source: https://github.com/stolk/imcat + +Files: * +Copyright: 2021-2022 Bram Stolk +License: CC0-1.0 + +License: CC0-1.0 + The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..bfe1fbf --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +imcat_1.4-1_source.buildinfo contrib/utils optional diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6085d9a --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +# Output every command that modifies files on the build system. +export DH_VERBOSE = 1 + + +# See FEATURE AREAS in dpkg-buildflags(1). +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# See ENVIRONMENT in dpkg-buildflags(1). +# Package maintainers to append CFLAGS. +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# Package maintainers to append LDFLAGS. +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)