| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 9 |
include /usr/share/dpkg/buildflags.mk |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure --builddirectory=build-qt6 -- \ |
| 16 |
-DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \ |
| 17 |
-DENABLE_UBUNTU_COMPAT=OFF \ |
| 18 |
-DENABLE_QT6=ON \ |
| 19 |
-DBUILD_LIBCONNECTIVITY_ONLY=ON |
| 20 |
dh_auto_configure --builddirectory=build-qt5 -- \ |
| 21 |
-DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \ |
| 22 |
-DENABLE_UBUNTU_COMPAT=OFF \ |
| 23 |
-DENABLE_QT6=OFF \ |
| 24 |
-DBUILD_LIBCONNECTIVITY_ONLY=OFF |
| 25 |
|
| 26 |
override_dh_auto_build: |
| 27 |
dh_auto_build --builddirectory=build-qt6 |
| 28 |
dh_auto_build --builddirectory=build-qt5 |
| 29 |
|
| 30 |
override_dh_auto_test: |
| 31 |
dh_auto_build --no-parallel --builddirectory=build-qt6 |
| 32 |
dh_auto_build --no-parallel --builddirectory=build-qt5 |
| 33 |
|
| 34 |
override_dh_auto_install: |
| 35 |
dh_auto_install --builddirectory=build-qt6 |
| 36 |
dh_auto_install --builddirectory=build-qt5 |
| 37 |
rmdir debian/tmp/usr/share/doc/lomiri-indicator-network/qml/html/images/ |
| 38 |
|
| 39 |
override_dh_auto_clean: |
| 40 |
dh_auto_clean --builddirectory=build-qt6 |
| 41 |
dh_auto_clean --builddirectory=build-qt5 |
| 42 |
|
| 43 |
get-orig-source: |
| 44 |
uscan --noconf --force-download --rename --download-current-version --destdir=.. |