summarylogtreecommitdiffstats
path: root/PKGBUILD.sh.ep
blob: d0b6ae89afb11c2161d0f7366c9514be6dadc252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% layout 'mingw-w64-qt5-module';
\
pkgver=5.15.1
pkgrel=1
arch=(<%== include 'fragments/mingw-w64-qt5-non_any_archs' %>)
pkgdesc="Inter-process communication (IPC) module developed for Qt (mingw-w64)"
depends=(<%== qt5deps qw(base) %>)
optdepends=(<%== qt5optdeps declarative => 'QML bindings' %>)
makedepends=('mingw-w64-gcc' <%== qt5deps qw(declarative) %>)
license=('GPL3' 'LGPL' 'FDL' 'custom')
\
% content_for build_config_before_make => begin

      # search paths for host standard library (/usr/lib) and for Qt5Bootstrap (/usr/$_arch/lib) are not set correctly by qmake
      # hence we need insert those paths manually
      make qmake_all
      find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.a /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \;
      find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.a|g" {} \;
      find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \;
      find . -type f -iname 'Makefile' -exec sed -i "s|-lQt5Bootstrap ||g" {} \;

% end