2015-12-20 01:44:40 +01:00
|
|
|
{ runCommand, lndir, qtbase }: name: paths:
|
2015-08-30 00:47:49 +02:00
|
|
|
|
2015-12-20 01:44:40 +01:00
|
|
|
runCommand name { inherit paths qtbase; } ''
|
2015-08-30 00:47:49 +02:00
|
|
|
|
|
|
|
mkdir -p "$out/bin" "$out/mkspecs" "$out/include" "$out/lib" "$out/share"
|
|
|
|
|
|
|
|
cp "$qtbase/bin/qmake" "$out/bin"
|
|
|
|
cat >"$out/bin/qt.conf" <<EOF
|
|
|
|
[Paths]
|
|
|
|
Prefix = $out
|
|
|
|
Plugins = lib/qt5/plugins
|
|
|
|
Imports = lib/qt5/imports
|
|
|
|
Qml2Imports = lib/qt5/qml
|
|
|
|
Documentation = share/doc/qt5
|
|
|
|
EOF
|
|
|
|
|
2015-09-19 18:37:39 +02:00
|
|
|
for pkg in $paths $qtbase; do
|
|
|
|
if [[ -d "$pkg/mkspecs" ]]; then
|
|
|
|
${lndir}/bin/lndir -silent "$pkg/mkspecs" "$out/mkspecs"
|
2015-08-30 00:47:49 +02:00
|
|
|
|
|
|
|
for dir in bin include lib share; do
|
2015-09-19 18:37:39 +02:00
|
|
|
if [[ -d "$pkg/$dir" ]]; then
|
|
|
|
${lndir}/bin/lndir -silent "$pkg/$dir" "$out/$dir"
|
2015-08-30 00:47:49 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
''
|