File: rules

package info (click to toggle)
texstudio 3.0.4%2Bds-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 46,252 kB
  • sloc: cpp: 100,769; xml: 9,228; ansic: 8,143; javascript: 4,235; sh: 191; makefile: 31
file content (46 lines) | stat: -rwxr-xr-x 1,337 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
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export LIBS += /usr/lib/$(DEB_MULTIARCH)/qt5/plugins/styles/adwaita.so
export QT_SELECT=qt5

%:
	dh ${@}

override_dh_auto_configure:
	dh_auto_configure -- NO_TESTS=1 NO_CRASH_HANDLER=1 \
	USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1
	echo "const char * TEXSTUDIO_GIT_REVISION = \"$(DEB_VERSION)\";" > \
	src/git_revision.cpp

override_dh_auto_install:
	dh_auto_install

	# change AUTHORS file to CREDITS
	tail -n +2 debian/tmp/usr/share/texstudio/AUTHORS > \
	debian/tmp/usr/share/texstudio/CREDITS

	# moving and renaming icons
	for SIZE in 16x16 22x22 32x32 48x48 64x64 128x128 ; do \
		mkdir -p debian/tmp/usr/share/icons/hicolor/$$SIZE/apps ; \
		mv -f debian/tmp/usr/share/texstudio/texstudio$$SIZE.png \
		debian/tmp/usr/share/icons/hicolor/$$SIZE/apps/texstudio.png ; \
	done

	# removing useless files
	rm -f debian/tmp/usr/share/texstudio/CHANGELOG.txt
	rm -f debian/tmp/usr/share/texstudio/COPYING
	rm -f debian/tmp/usr/share/texstudio/AUTHORS

override_dh_compress:
	dh_compress -X.html -X.css -X.png

override_dh_installchangelogs:
	dh_installchangelogs utilities/manual/CHANGELOG.txt

override_dh_missing:
	dh_missing --fail-missing