| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=qmake |
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
dh_auto_configure --builddirectory=build-qt6 --buildsystem=cmake |
| 14 |
./configure -tests -icu -prefix /usr -libdir /usr/lib/$(DEB_HOST_MULTIARCH) |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
dh_auto_build --builddirectory=build-qt6 --buildsystem=cmake |
| 18 |
/usr/lib/qt5/bin/qmake -o Makefile src/src.pro QMAKE_CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" QMAKE_CFLAGS="${CPPFLAGS} ${CFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" |
| 19 |
dh_auto_build --buildsystem=qmake |
| 20 |
|
| 21 |
override_dh_auto_test: |
| 22 |
mkdir -p debian/test-home/.local/share |
| 23 |
|
| 24 |
HOME=$(shell pwd)/debian/test-home xvfb-run -a dh_auto_test --builddirectory=build-qt6 --buildsystem=cmake |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
ln -s libmlocale5.so.0.1.1 lib/libsrc.so.0.1.1 |
| 29 |
HOME=$(shell pwd)/debian/test-home xvfb-run -a dh_auto_test --no-parallel |
| 30 |
|
| 31 |
override_dh_auto_install: |
| 32 |
dh_auto_install --builddirectory=build-qt6 --buildsystem=cmake |
| 33 |
dh_auto_install --buildsystem=qmake |
| 34 |
|
| 35 |
override_dh_auto_clean: |
| 36 |
dh_auto_clean --builddirectory=build-qt6 --buildsystem=cmake |
| 37 |
dh_auto_clean --buildsystem=qmake |
| 38 |
|
| 39 |
execute_after_dh_clean: |
| 40 |
rm -fR debian/test-home/ |
| 41 |
rm -f .qmake.cache |
| 42 |
rm -f benchmarks/tests.xml |
| 43 |
rm -f mkspecs/features/mlocale_defines.prf |
| 44 |
rm -f mkspecs/mlocaleconfig.pri |
| 45 |
rm -f src/data/mlocale5.pc |
| 46 |
rm -f tests/tests.xml |
| 47 |
rm -f lib/libsrc.so.0.1.1 |
| 48 |
|
| 49 |
get-orig-source: |
| 50 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |