aboutsummaryrefslogtreecommitdiff
path: root/port-files/debian/rules
blob: 9f19b9b52e3f844c0eaa0e82a3fb107e93d5aa74 (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
#!/usr/bin/make -f
DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --parallel

override_dh_auto_configure:
	/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qmake \
		PREFIX=/usr \
		LIBPREFIX=/usr/lib/$(DEB_HOST_MULTIARCH) \
		L_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		L_ETCDIR=/etc \
		QMAKE_CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
		QMAKE_LFLAGS="$(LDFLAGS) -Wl,--as-needed" \
		CONFIG+=nostrip

override_dh_auto_clean:
	dh_auto_clean
	-find $(CURDIR) -name *.qm -delete

override_dh_install:
	dh_install --list-missing
	mv $(CURDIR)/port-files/debian/lumina-desktop/usr/bin/lumina-desktop \
		$(CURDIR)/port-files/debian/lumina-desktop/usr/bin/lumina-desktop.real
	install -m755 $(CURDIR)/port-files/debian/lumina-desktop \
		$(CURDIR)/port-files/debian/lumina-desktop/usr/bin/lumina-desktop
bgstack15