File: rules

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (42 lines) | stat: -rwxr-xr-x 1,269 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
#!/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 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 INTERNAL_TERMINAL=1 PHONON=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