blob: 0046dad702115fe26942e1c53daf122381dd87a4 (
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
|
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Reference:
# qmake options examples https://github.com/bertogg/gallery-liquify-plugin/blob/73e0034f545f9092b42d7045e7ba9abd61fb0374/debian/rules
# for multi-package split https://salsa.debian.org/xorg-team/lib/libxss/-/tree/debian-unstable/debian
# this app build options https://gitlab.com/rodlie/powerkit
# use ${LIBSUFFIX} this app lib/lib.pro
export APPNAME=powerkit
QMAKE_OPTIONS += QMAKE_CXXFLAGS_RELEASE='$(CFLAGS)' \
QMAKE_CXXFLAGS_DEBUG='$(CFLAGS)' \
QMAKE_CFLAGS_RELEASE='$(CFLAGS)' \
QMAKE_CFLAGS_DEBUG='$(CFLAGS)' \
QMAKE_STRIP=: \
PREFIX=/usr \
UDEVDIR=/lib/udev \
CONFIG+=install_udev_rules \
CONFIG+=install_lib \
LIBSUFFIX=/${DEB_HOST_MULTIARCH}
# if you want to build with bundled icons:
#CONFIG+=bundle_icons
%:
dh $@ --buildsystem=qmake
override_dh_auto_configure:
qmake $(QMAKE_OPTIONS)
override_dh_auto_build:
dh_auto_build
sh debian/make-dsc-for-obs.sh
|