add debian package building

This commit is contained in:
Nicole Faerber 2021-02-06 20:50:04 +01:00
parent d95bda16a8
commit db5900697b
7 changed files with 63 additions and 2 deletions

View file

@ -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

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
flirgtk (0.01-1) UNRELEASED; urgency=low
* Initial release.
-- Nicole Faerber <nicole.faerber@dpin.de> Sat, 06 Feb 2021 19:38:33 +0100

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
10

16
debian/control vendored Normal file
View file

@ -0,0 +1,16 @@
Source: flirgtk
Maintainer: Nicole Faerber <nicole.faerber@dpin.de>
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.

22
debian/copyright vendored Normal file
View file

@ -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 <nicole.faerber@dpin.de>
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 <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

8
debian/rules vendored Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
%:
dh $@
override_dh_auto_install:
dh_auto_install -- prefix=/usr

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (native)