[SCM] qtserialport packaging branch, master, updated. 4c849b37cceedf1205b783035f96653dfa417ea9
Lisandro Damián Nicanor Pérez
lisandro at alioth.debian.org
Thu Aug 22 23:30:57 UTC 2013
Gitweb-URL: http://git.debian.org/?p=pkg-kde/qt/qtserialport.git;a=commitdiff;h=4c849b3
The following commit has been merged in the master branch:
commit 4c849b37cceedf1205b783035f96653dfa417ea9
Author: Lisandro Damián Nicanor Pérez Meyer <perezmeyer at gmail.com>
Date: Thu Aug 22 20:30:31 2013 -0300
debian/rules.
---
debian/rules | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a0fe0a4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
+export QT_SELECT := qt5
+
+%:
+ dh $@ --with pkgkde_symbolshelper --parallel --dbg-package=qtserialport5-dbg
+
+override_dh_auto_configure:
+ qmake
+
+override_dh_auto_build-arch:
+ # This override may seem futile, but it helps us make sure that the tools
+ # needed for building the docs are built before calling them.
+ # If there's a better way, do not heasitate to tell us.
+ dh_auto_build
+
+override_dh_auto_build-indep:
+ dh_auto_build -Smakefile -- docs
+
+override_dh_auto_install-arch:
+ dh_auto_install
+
+ # Remove libtool-like files
+ rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
+
+ # Remove private headers, nothing needs them so far.
+ rm -rfv debian/tmp/usr/include/qt5/QtSerialPort/5.1.0/QtSerialPort/private/
+
+ # Fix wrong path in pkgconfig files
+ find $(CURDIR)/debian/tmp/usr/lib/*/pkgconfig -type f -name '*.pc' \
+ -exec sed -i -e 's/$(DEB_HOST_MULTIARCH)\/$(DEB_HOST_MULTIARCH)/$(DEB_HOST_MULTIARCH)/g' {} \;
+
+override_dh_auto_install-indep:
+ make INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs
+
+override_dh_install:
+ dh_install --fail-missing
+
+override_dh_builddeb:
+ dh_builddeb -- -Zxz
--
qtserialport packaging
More information about the pkg-kde-commits
mailing list