#!/usr/bin/make -f DH_VERBOSE = 1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all QMAKE = /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qmake DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) USER_QMAKE_FLAGS = \ PREFIX=/usr \ LIBPREFIX=/usr/lib/$(DEB_HOST_MULTIARCH) \ QT5LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/qt5 \ QMAKE_CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" \ QMAKE_LFLAGS="$(LDFLAGS) -Wl,--as-needed" QMAKE_EXTRA_DIRS = libLumina \ lumina-config \ lumina-desktop \ lumina-fm \ lumina-open \ lumina-screenshot \ lumina-search \ lumina-info \ lumina-xconfig %: dh $@ --parallel override_dh_auto_configure: sed -e 's/LuminaOS-Linux/LuminaOS-Debian/g' -i libLumina/libLumina.pro $(QMAKE) $(USER_QMAKE_FLAGS) for d in $(QMAKE_EXTRA_DIRS) ; do (cd $$d && $(QMAKE) $(USER_QMAKE_FLAGS)); done override_dh_auto_clean: dh_auto_clean -find $(CURDIR) -name *.qm -delete -sed -e 's/LuminaOS-Debian/LuminaOS-Linux/g' -i libLumina/libLumina.pro override_dh_install: dh_install --list-missing echo "/usr/lib/$(DEB_HOST_MULTIARCH)/lxpolkit" > \ $(CURDIR)/debian/lumina-desktop/etc/luminaStartapps mv $(CURDIR)/debian/lumina-desktop/usr/bin/Lumina-DE \ $(CURDIR)/debian/lumina-desktop/usr/bin/Lumina-DE.real install -m755 $(CURDIR)/debian/Lumina-DE \ $(CURDIR)/debian/lumina-desktop/usr/bin/Lumina-DE # make install / dh_auto_install will automatically strip the library. # This is a work-around to preserve the debug symbols for the debug package. install -m644 libLumina/libLuminaUtils.so.1.0.0 \ $(CURDIR)/debian/libluminautils1/usr/lib/$(DEB_HOST_MULTIARCH) override_dh_strip: dh_strip -plibluminautils1 --dbg-package=libluminautils-dbg dh_strip --remaining-packages