qt5: update to 5.4.1 and create foo-qt5 symlinks in usr/bin too.

This commit is contained in:
Juan RP 2015-02-24 20:01:11 +01:00
parent dbb8579eba
commit ed09511148

View file

@ -1,14 +1,14 @@
# Template file for 'qt5'
pkgname=qt5
version=5.4.0
revision=4
version=5.4.1
revision=1
wrksrc="qt-everywhere-opensource-src-${version}"
homepage="http://qt-project.com/"
short_desc="A cross-platform application and UI framework (QT5)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3, LGPL-2.1"
distfiles="http://download.qt-project.org/official_releases/qt/${version%.*}/${version}/single/qt-everywhere-opensource-src-${version}.tar.xz"
checksum=b2d9df47b9fd2fcfa5ebd162e1373b7eddf4759e6ba148c4589f3d8b6628c39c
checksum=1b7eb91e153176ac917f72b6bf443f987abf47c4208cdd43e2307684a7fad860
nocross=yes
hostmakedepends="flex ruby gperf python perl pkg-config"
@ -56,6 +56,10 @@ do_install() {
make INSTALL_ROOT=${DESTDIR} install
vlicense LGPL_EXCEPTION.txt
rm -r ${DESTDIR}/usr/share/doc
vmkdir usr/bin
for f in ${PKGDESTDIR}/usr/lib/qt5/bin/*; do
ln -s /usr/lib/qt5/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt5
done
}
qt5-connectivity-devel_package() {
@ -106,6 +110,10 @@ qt5-declarative_package() {
rm ${PKGDESTDIR}/usr/lib/*.a
rm ${PKGDESTDIR}/usr/lib/*.so
rm ${PKGDESTDIR}/usr/lib/*.prl
vmkdir usr/bin
for f in ${PKGDESTDIR}/usr/lib/qt5/bin/*; do
ln -s /usr/lib/qt5/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt5
done
}
}
qt5-enginio-devel_package() {
@ -218,6 +226,10 @@ qt5-quick1_package() {
rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs
rm ${PKGDESTDIR}/usr/lib/*.so
rm ${PKGDESTDIR}/usr/lib/*.prl
vmkdir usr/bin
for f in ${PKGDESTDIR}/usr/lib/qt5/bin/*; do
ln -s /usr/lib/qt5/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt5
done
}
}
qt5-quickcontrols_package() {
@ -481,6 +493,10 @@ qt5-xmlpatterns_package() {
rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs
rm ${PKGDESTDIR}/usr/lib/*.so
rm ${PKGDESTDIR}/usr/lib/*.prl
vmkdir usr/bin
for f in ${PKGDESTDIR}/usr/lib/qt5/bin/*; do
ln -s /usr/lib/qt5/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt5
done
}
}
qt5-translations_package() {
@ -534,6 +550,10 @@ qt5-tools_package() {
# install desktop files
vmkdir usr/share/applications
install -m644 ${FILESDIR}/*.desktop ${PKGDESTDIR}/usr/share/applications
vmkdir usr/bin
for f in ${PKGDESTDIR}/usr/lib/qt5/bin/*; do
ln -s /usr/lib/qt5/bin/$(basename $f) ${DESTDIR}/usr/bin/$(basename $f)-qt5
done
}
}
qt5-devel_package() {
@ -586,5 +606,7 @@ qt5-qmake_package() {
pkg_install() {
vmove usr/lib/qt5/bin/qmake
vmove usr/lib/qt5/mkspecs
vmkdir usr/bin
ln -s /usr/lib/qt5/bin/qmake ${DESTDIR}/usr/bin/qmake-qt5
}
}