From db5900697b48ef52b524d65ce157687b45f2ced7 Mon Sep 17 00:00:00 2001 From: Nicole Faerber Date: Sat, 6 Feb 2021 20:50:04 +0100 Subject: [PATCH] add debian package building --- Makefile | 12 ++++++++++-- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 ++++++++++++++++ debian/copyright | 22 ++++++++++++++++++++++ debian/rules | 8 ++++++++ debian/source/format | 1 + 7 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 36d31c5..350b00c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +prefix=/usr/local + CC=gcc CFLAGS=-g -O2 -Wall -D_REENTRANT `pkg-config --cflags gtk+-3.0 libusb-1.0 libjpeg libcjson` LIBS=`pkg-config --libs gtk+-3.0 libusb-1.0 libjpeg libcjson` -lm @@ -7,8 +9,14 @@ PRG=flirgtk all: $(PRG) -$(PRG): $(OBJ) +$(PRG): $(OBJ) cam-thread.h planck.h $(CC) $(OBJ) -o $(PRG) $(LIBS) +install: + install -D $(PRG) $(DESTDIR)$(prefix)/bin/$(PRG) + clean: - rm $(OBJ) + rm -f $(PRG) $(OBJ) + +deb: + dpkg-buildpackage -rfakeroot -b -uc -us -ui -i -i diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..277da27 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +flirgtk (0.01-1) UNRELEASED; urgency=low + + * Initial release. + + -- Nicole Faerber Sat, 06 Feb 2021 19:38:33 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9e62768 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: flirgtk +Maintainer: Nicole Faerber +Section: misc +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: + libgtk-3-dev, + libjpeg-dev, + libusb-1.0-0-dev, + libcjson-dev + +Package: flirgtk +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: View and control FLIR One USB thermal camera + View and take picture with the FLIR One USB thermal IR camaras. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b75efd0 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: flirgtk +Source: https://source.dpin.de/nica/flir-gtk + +Files: * +Copyright: 2021 Nicole Faerber +License: GPL-3+ + 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f434eee --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install -- prefix=/usr diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)