qt5: remove /builddir from results

Closes #4152
This commit is contained in:
Jürgen Buchmüller 2016-05-07 20:11:25 +02:00
parent 81c641e2a9
commit 4ccaa7f1d4

View file

@ -1,7 +1,7 @@
# Template file for 'qt5' # Template file for 'qt5'
pkgname=qt5 pkgname=qt5
version=5.6.0 version=5.6.0
revision=8 revision=9
wrksrc="qt-everywhere-opensource-src-${version}" wrksrc="qt-everywhere-opensource-src-${version}"
homepage="http://qt.io/" homepage="http://qt.io/"
short_desc="A cross-platform application and UI framework (QT5)" short_desc="A cross-platform application and UI framework (QT5)"
@ -33,20 +33,21 @@ CXXFLAGS="-DOPENSSL_NO_SSL3_METHOD"
_move_examples() { _move_examples() {
if [ -d ${PKGDESTDIR}/usr/share/qt5/examples ]; then if [ -d ${PKGDESTDIR}/usr/share/qt5/examples ]; then
# The help files (*.qch) are in qt5-doc
find ${PKGDESTDIR}/usr/share/qt5/examples -iname "*.qch" -delete
# Copy examples to /destdir/qt5-examples-${version} subpackage # Copy examples to /destdir/qt5-examples-${version} subpackage
mkdir -p /destdir/qt5-examples-${version}/usr/share/qt5 mkdir -p /destdir/qt5-examples-${version}/usr/share/qt5
cp -pR ${PKGDESTDIR}/usr/share/qt5/examples \ cp -pR ${PKGDESTDIR}/usr/share/qt5/examples \
/destdir/qt5-examples-${version}/usr/share/qt5 /destdir/qt5-examples-${version}/usr/share/qt5
rm -rf ${PKGDESTDIR}/usr/share/qt5/examples rm -rf ${PKGDESTDIR}/usr/share/qt5/examples
# The help files (*.qch) are in qt5-doc
find /destdir/qt5-examples-${version}/usr/share/qt5/examples -iname "*.qch" -delete
fi fi
} }
_install_subpkg() { _install_subpkg() {
local module=$1 base local module=$1 f base
cd ${wrksrc}/${module} cd ${wrksrc}/${module}
make INSTALL_ROOT=${PKGDESTDIR} install make INSTALL_ROOT=${PKGDESTDIR} install
rm -rf ${PKGDESTDIR}/builddir
rm -rf ${PKGDESTDIR}/usr/include rm -rf ${PKGDESTDIR}/usr/include
rm -rf ${PKGDESTDIR}/usr/lib/cmake rm -rf ${PKGDESTDIR}/usr/lib/cmake
rm -rf ${PKGDESTDIR}/usr/lib/qt5/mkspecs rm -rf ${PKGDESTDIR}/usr/lib/qt5/mkspecs
@ -67,6 +68,7 @@ _install_devel() {
local module=$1 local module=$1
cd ${wrksrc}/${module} cd ${wrksrc}/${module}
make INSTALL_ROOT=${PKGDESTDIR} install make INSTALL_ROOT=${PKGDESTDIR} install
rm -rf ${PKGDESTDIR}/builddir
rm -rf ${PKGDESTDIR}/usr/share rm -rf ${PKGDESTDIR}/usr/share
rm -rf ${PKGDESTDIR}/usr/lib/qt5/bin rm -rf ${PKGDESTDIR}/usr/lib/qt5/bin
rm -rf ${PKGDESTDIR}/usr/lib/qt5/qml rm -rf ${PKGDESTDIR}/usr/lib/qt5/qml