blob: 372da29334e0531ed194b9f088efd78dd5880602 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/usr/bin/make -f
DH_VERBOSE = 1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
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 \
lumina-fm \
lumina-open \
lumina-screenshot \
lumina-search \
lumina-info \
lumina-xconfig
%:
dh $@
override_dh_auto_configure:
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:
dh_auto_clean
-find $(CURDIR) -name *.qm -delete
-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
mkdir $(CURDIR)/debian/lumina-desktop/etc/
install -m644 $(CURDIR)/debian/luminaDesktop.conf \
$(CURDIR)/debian/lumina-desktop/etc/luminaDesktop.conf
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
mkdir -p $(CURDIR)/debian/lumina-desktop/etc/default
install -m644 $(CURDIR)/debian/lumina-qt5ct \
$(CURDIR)/debian/lumina-desktop/etc/default/lumina-qt5ct
override_dh_auto_install:
INSTALL_ROOT=$(CURDIR)/debian/tmp/ $(MAKE) install
-rm -rf $(CURDIR)/debian/tmp/usr/etc/
|