File: rules

package info (click to toggle)
qbrew 0.4.1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,900 kB
  • sloc: cpp: 7,500; sh: 414; makefile: 13
file content (26 lines) | stat: -rwxr-xr-x 967 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export QT_SELECT = qt5
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

# dh_auto_configure does not work with this package, thus
# we need to call the configure script manually.
override_dh_auto_configure:
	./configure --debug --prefix=/usr

# Install two icons for desktop file
# Important: Specify the buildsystem for dh_auto_install as "qmake",
# otherwise debhelper assumes autoconf and will not set the variable
# INSTALL_ROOT for qmake, only DESTDIR for the Makefile.
# The build will fail because the installation then uses the system
# directories. See bug #840732.
override_dh_auto_install:
	dh_auto_install --buildsystem=qmake
	install -m 0644 pics/qbrew.png $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/48x48/apps
	install -m 0644 pics/qbrew.svg $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/scalable/apps