aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules17
1 files changed, 13 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 9804eda6..44adb87b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-DEB_PREF = $(shell gcc -print-multiarch)
-USER_QMAKE_FLAGS = PREFIX=/usr LIBPREFIX=/usr/lib/$(DEB_PREF) QT5LIBDIR=/usr/lib/$(DEB_PREF)/qt5
+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_EXTRA_DIRS = libLumina \
lumina-config \
lumina-desktop \
@@ -22,15 +22,24 @@ QMAKE_EXTRA_DIRS = libLumina \
dh $@
override_dh_auto_configure:
- /usr/lib/$(DEB_PREF)/qt5/bin/qmake $(USER_QMAKE_FLAGS)
- for d in $(QMAKE_EXTRA_DIRS) ; do (cd $$d && /usr/lib/$(DEB_PREF)/qt5/bin/qmake $(USER_QMAKE_FLAGS)); done
+ sed -e 's/LuminaOS-Linux/LuminaOS-Debian/g' -i libLumina/libLumina.pro
+ /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qmake $(USER_QMAKE_FLAGS)
+ for d in $(QMAKE_EXTRA_DIRS) ; do (cd $$d && /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qmake $(USER_QMAKE_FLAGS)); done
override_dh_auto_clean:
-$(MAKE) distclean
-find $(CURDIR) -name *.qm | xargs rm
+ -sed -e 's/LuminaOS-Debian/LuminaOS-Linux/g' -i libLumina/libLumina.pro
override_dh_strip:
dh_strip -a --dbg-package=libluminautils-dbg
+override_dh_install:
+ dh_install --fail-missing
+
override_dh_auto_install:
INSTALL_ROOT=$(CURDIR)/debian/tmp/ $(MAKE) install
+ -rm -rf $(CURDIR)/debian/tmp/usr/etc/
+ -mkdir $(CURDIR)/debian/lumina-core/etc/
+ -install -m644 $(CURDIR)/debian/luminaDesktop.conf \
+ $(CURDIR)/debian/lumina-core/etc/luminaDesktop.conf
bgstack15