blob: b792da2e795a8a2af2f5189cfc83f09da00804a1 (
plain)
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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export QT_SELECT:=qt5
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# Export qmake cross wrapper in QMAKE to allow lrelease to work in case of
# cross-build.
include /usr/share/dpkg/buildtools.mk
export QMAKE
override_dh_auto_configure:
lrelease ultracopier.pro
lrelease plugins/CopyEngine/Ultracopier-Spec/CopyEngine.pro
lrelease plugins/Themes/Oxygen/interface.pro
# Ensure QM file timestamps are stable over time because they get
# picked up by rcc in files generated from QRC resource file when they
# themselves refer to a QM file (ie. qrc_ultracopier-resources
# generated from resources/ultracopier-resources.qrc gets the timestamp
# from resources/Languages/en/translation.qm
find -name \*.qm -exec touch -d@0 {} \;
dh_auto_configure --buildsystem=qmake -- \
QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS) $(CPPFLAGS)" \
QMAKE_CXXFLAGS_DEBUG="$(CXXFLAGS) $(CPPFLAGS)" \
target.path=/usr/bin "INSTALLS+=target" \
ultracopier.pro
execute_before_clean:
rm -f build
execute_after_clean:
find -name \*.qm -delete
execute_after_build:
touch build
%:
dh $@ --buildsystem=qmake
|