diff options
author | Slávek Banko <[email protected]> | 2018-09-10 00:32:39 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-13 16:34:42 +0200 |
commit | 2eb5f2fa79b7ae61f46e847105e2e49e0fbc2c33 (patch) | |
tree | 6d356f809804993c181bb57bc939e9f71189e8eb /ubuntu/maverick/dependencies/tqt3/debian/rules | |
parent | 40fdbc4f429a70eae94827f38ea3121b6f14639a (diff) | |
download | tde-packaging-2eb5f2fa79b7ae61f46e847105e2e49e0fbc2c33.tar.gz tde-packaging-2eb5f2fa79b7ae61f46e847105e2e49e0fbc2c33.zip |
DEB tqt3: Install libraries according to multi-arch rules
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ubuntu/maverick/dependencies/tqt3/debian/rules')
-rwxr-xr-x | ubuntu/maverick/dependencies/tqt3/debian/rules | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ubuntu/maverick/dependencies/tqt3/debian/rules b/ubuntu/maverick/dependencies/tqt3/debian/rules index a2d5e0a8d..42f031168 100755 --- a/ubuntu/maverick/dependencies/tqt3/debian/rules +++ b/ubuntu/maverick/dependencies/tqt3/debian/rules @@ -51,7 +51,8 @@ CONFIGURE_OPTS = \ -datadir "/usr/share/tqt3" \ -headerdir "/usr/include/tqt3" \ -docdir "/usr/share/tqt3/doc" \ - -plugindir "/usr/lib/tqt3/plugins" \ + -libdir "/usr/lib/$(DEB_HOST_MULTIARCH)" \ + -plugindir "/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins" \ -translationdir "/usr/share/tqt3/translations" \ \ -thread \ @@ -220,6 +221,12 @@ clean:: cd examples/ && find . -name '.obj' | xargs rm -rf + # revert multi-arch path in install files + for a in debian/*install debian/*links; do \ + [ ! -f $$a.arch ] || \ + mv $$a.arch $$a; \ + done + dh_clean install: build @@ -230,8 +237,14 @@ install: build dh_clean -i dh_installdirs + # update multi-arch path in install files + for a in debian/*install debian/*links; do \ + [ -d $$a ] || [ -f $$a.arch ] || \ + sed -i.arch "s|\$$(DEB_HOST_MULTIARCH)|$(DEB_HOST_MULTIARCH)|g" $$a; \ + done + # fix .prl files - for a in $(TMP_INSTALL)/usr/lib/*prl; do cat "$$a" | sed \ + for a in $(TMP_INSTALL)/usr/lib/$(DEB_HOST_MULTIARCH)/*prl; do cat "$$a" | sed \ "s#$(QTDIR)#/usr/share/tqt3#g" > "$$a".new && mv "$$a".new "$$a"; done dh_install $(IBASE) --sourcedir=$(TMP_INSTALL) |