File: rules

package info (click to toggle)
basic256 2.0.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 15,076 kB
  • sloc: cpp: 16,791; yacc: 3,979; lex: 1,446; makefile: 25
file content (33 lines) | stat: -rwxr-xr-x 1,177 bytes parent folder | download
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
29
30
31
32
33
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export QT_SELECT=qt5

include /usr/share/dpkg/architecture.mk
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
QMAKE = qmake
else
QMAKE = $(DEB_HOST_GNU_TYPE)-qmake
endif

%:
	dh $@ --buildsystem=qmake

execute_before_dh_auto_build:
	@echo "Build translation files, probably a noop as they are included in sources."
	-lrelease BASIC256.pro

override_dh_auto_clean:
	dh_auto_clean -- QMAKE=$(QMAKE)

override_dh_auto_configure:
	dh_auto_configure -- BASIC256.pro

# Install desktop icon, must be renamed so do it here rather than basic256.install
# Available icons files:
#  Examples/basic256_icon.png: PNG image data, 512 x 512, 8-bit/color RGBA, non-interlaced
#  resources/images/logo_300x300.png: PNG image data, 300 x 300, 8-bit/color RGB, non-interlaced
execute_after_dh_install:
	mkdir -p debian/basic256/usr/share/icons/hicolor/300x300/apps
	mkdir -p debian/basic256/usr/share/icons/hicolor/512x512/apps
	cp resources/images/logo_300x300.png debian/basic256/usr/share/icons/hicolor/300x300/apps/basic256.png
	cp Examples/basic256_icon.png        debian/basic256/usr/share/icons/hicolor/512x512/apps/basic256.png