Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- mode: makefile; coding: utf-8 -*-
3 #export DH_VERBOSE=1
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 DPKG_EXPORT_BUILDFLAGS = 1
7 include /usr/share/dpkg/buildflags.mk
8
9 export QT_SELECT = qt5
10
11 # Define install target dir
12 INSTALLDIR = $(CURDIR)/debian/tmp
13
14 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
15
16 %:
17 dh $@ --buildsystem=qmake
18
19 override_dh_auto_install:
20 # Install Pascal binding source & fix permissions
21 mkdir -p $(INSTALLDIR)/usr/share/pascal/qt5
22 install $(CURDIR)/qt5.pas $(INSTALLDIR)/usr/share/pascal/qt5/
23 for type in pas p txt ; do find $(INSTALLDIR)/usr/share/ -type f -name "*$$type" -exec chmod -x '{}' \; ; done
24 # Now install the lib
25 dh_auto_install --destdir=$(INSTALLDIR)
26 # If we don't have a multiarch-Qt, copy lib to multiarch path anyway
27 $(CURDIR)/debian/fix-multiarch.sh TARGET=$(INSTALLDIR) HOST_MULTIARCH=$(DEB_HOST_MULTIARCH)