File: rules

package info (click to toggle)
fraqtive 0.4.8-11
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,576 kB
  • sloc: cpp: 10,878; sh: 103; xml: 39; makefile: 20
file content (28 lines) | stat: -rwxr-xr-x 931 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export QT_SELECT=qt5

include /usr/share/dpkg/architecture.mk

ifneq ($(DEB_HOST_ARCH),amd64)
	EXTRA_CONFIGURE_OPTS += -no-sse2
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	EXTRA_CONFIGURE_OPTS += -qmake $(shell which $(DEB_HOST_GNU_TYPE)-qmake)
endif

%:
	dh $@

override_dh_auto_configure:
	./configure $(EXTRA_CONFIGURE_OPTS) -prefix /usr -debug

override_dh_auto_install:

override_dh_install:
	dh_install
	install -D -m 644 -p src/icons/fraqtive-16.png debian/fraqtive/usr/share/icons/hicolor/16x16/apps/fraqtive.png
	install -D -m 644 -p src/icons/fraqtive-22.png debian/fraqtive/usr/share/icons/hicolor/22x22/apps/fraqtive.png
	install -D -m 644 -p src/icons/fraqtive-32.png debian/fraqtive/usr/share/icons/hicolor/32x32/apps/fraqtive.png
	install -D -m 644 -p src/icons/fraqtive-48.png debian/fraqtive/usr/share/icons/hicolor/48x48/apps/fraqtive.png