qt5.düzenlendi,
This commit is contained in:
parent
62f2a8fccf
commit
27301f2944
|
@ -0,0 +1,28 @@
|
||||||
|
# Description: Classes for a WebKit2 based implementation and a new QML API
|
||||||
|
# URL: http://qt-project.org/
|
||||||
|
# Packager: alihan-ozturk28@hotmail.com
|
||||||
|
# Depends on: gstreamer1-plugins-base libwebp xorg-libxcomposite libxslt gstreamer1-plugins-good python ruby qt5
|
||||||
|
|
||||||
|
name=qt5-webkit
|
||||||
|
version=5.6.0
|
||||||
|
release=1
|
||||||
|
_version=${version/-/}
|
||||||
|
_name=qtwebkit-opensource-src-${_version}
|
||||||
|
_namefqn="${name/5-/}-opensource-src-${_version}"
|
||||||
|
|
||||||
|
source=(http://download.qt-project.org/community_releases/${_version%.*}/${_version}/${_name}.tar.xz)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${_namefqn}
|
||||||
|
syncqt.pl-qt5 -version $version Source/sync.profile
|
||||||
|
qmake-qt5
|
||||||
|
|
||||||
|
make
|
||||||
|
make INSTALL_ROOT="$PKG" install
|
||||||
|
|
||||||
|
rm -rf /usr/share/doc
|
||||||
|
|
||||||
|
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
||||||
|
find "$PKG/usr/lib" -type f -name '*.prl' \
|
||||||
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
||||||
|
}
|
|
@ -19,6 +19,10 @@ source=(http://download.qt.io/official_releases/qt/${version%.*}/$version/single
|
||||||
qt5-webengine-nss.patch)
|
qt5-webengine-nss.patch)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
QT5PREFIX=/usr
|
||||||
|
QT5BINDIR=$QT5PREFIX/lib/qt5/bin
|
||||||
|
|
||||||
|
|
||||||
cd qt-everywhere-opensource-src-$version
|
cd qt-everywhere-opensource-src-$version
|
||||||
|
|
||||||
# Backport fixes for QtDBus deadlocks
|
# Backport fixes for QtDBus deadlocks
|
||||||
|
@ -63,67 +67,125 @@ build() {
|
||||||
export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
|
||||||
export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins"
|
export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins"
|
||||||
|
|
||||||
./configure -prefix /usr/share/qt5 \
|
./configure -opensource -confirm-license \
|
||||||
-bindir /usr/share/qt5/bin \
|
-prefix $QT5PREFIX \
|
||||||
-headerdir /usr/share/qt5/include \
|
-sysconfdir /etc/xdg \
|
||||||
-libdir /usr/share/qt5/lib \
|
-bindir $QT5BINDIR \
|
||||||
-libexecdir /usr/share/qt5/lib \
|
-plugindir /usr/lib/qt5/plugins \
|
||||||
-plugindir /usr/share/qt5/plugins \
|
-importdir /usr/lib/qt5/imports \
|
||||||
-sysconfdir /usr/etc/xdg \
|
-headerdir /usr/include/qt5 \
|
||||||
-openssl-linked -dbus-linked \
|
-datadir /usr/share/qt5 \
|
||||||
-system-lib{png,jpeg} -system-{zlib,sqlite} \
|
-translationdir /usr/share/qt5/translations \
|
||||||
-no-cups -optimized-qmake \
|
-plugin-sql-{psql,mysql,sqlite,odbc} \
|
||||||
-x{cursor,inerama,kb,randr,render} \
|
-openssl-linked -dbus-linked \
|
||||||
-nomake examples \
|
-system-lib{png,jpeg} -system-{zlib,sqlite} \
|
||||||
-no-separate-debug-info -no-strip -shared -no-rpath \
|
-no-cups -optimized-qmake \
|
||||||
-opensource -confirm-license -release -reduce-relocations
|
-x{cursor,inerama,kb,randr,render} \
|
||||||
|
-nomake examples \
|
||||||
|
-no-separate-debug-info -no-strip -shared -no-rpath \
|
||||||
|
-release -reduce-relocations
|
||||||
|
|
||||||
make
|
make
|
||||||
make INSTALL_ROOT=$PKG install
|
make INSTALL_ROOT=$PKG install
|
||||||
|
|
||||||
# Fix paths
|
find $PKG/usr/ -name qt_lib_bootstrap_private.pri \
|
||||||
find $PKG/usr/share/qt5/lib -type f -name '*.prl' \
|
-exec sed -i -e "s:$PWD/qtbase:/$QT5PREfiX/lib/:g" {} \; &&
|
||||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
|
|
||||||
|
|
||||||
sed -e "s|$PWD/qtbase|/usr/share/qt5/lib|g" \
|
|
||||||
-i $PKG/usr/share/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
|
|
||||||
|
|
||||||
# Remove unnecessary files
|
find $PKG/usr -name \*.prl \
|
||||||
rm -rf $(find $PKG/usr/share/qt5/mkspecs/* | \
|
-exec sed -i -e '/^QmAKE_PRL_BUiLD_DiR/d' {} \;
|
||||||
egrep -v '(linux-g++|common|modules|pri|features)')
|
|
||||||
|
|
||||||
rm -f $PKG/usr/share/qt5/mkspecs/linux-g++/linux-g++
|
install -v -dm755 $PKG/usr/share/pixmaps/
|
||||||
rm -rf $PKG/usr/share/qt5/mkspecs/features/{mac,win32}
|
|
||||||
rm -rf $PKG/usr/share/qt5/mkspecs/common/mac*
|
|
||||||
rm -rf $PKG/usr/share/qt5/{phrasebooks,translations}
|
|
||||||
rm -r $PKG/usr/share/doc
|
|
||||||
# Install linker config
|
|
||||||
install -d $PKG/{etc/ld.so.conf.d,usr/{bin,lib,include}}
|
|
||||||
echo "/usr/share/qt5/lib" > $PKG/etc/ld.so.conf.d/qt5.conf
|
|
||||||
|
|
||||||
ln -s ../share/qt5/include $PKG/usr/include/qt5
|
install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
|
||||||
ln -s ../share/qt5/lib $PKG/usr/lib/qt5
|
$PKG/usr/share/pixmaps/assistant-qt5.png
|
||||||
ln -s linux-g++ $PKG/usr/share/qt5/mkspecs/default
|
|
||||||
|
|
||||||
# Install pkg config
|
install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
|
||||||
mv $PKG/usr/share/qt5/lib/pkgconfig $PKG/usr/lib
|
$PKG/usr/share/pixmaps/designer-qt5.png
|
||||||
|
|
||||||
# Fix paths
|
install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
|
||||||
sed \
|
$PKG/usr/share/pixmaps/linguist-qt5.png
|
||||||
-e "s|-L$SRC/qt-everywhere-opensource-src-$version/lib ||g" \
|
|
||||||
-e "s|$SRC/qt-everywhere-opensource-src-$version/bin|/usr/share/qt5/bin|g" \
|
|
||||||
-i $PKG/usr/lib/pkgconfig/*.pc
|
|
||||||
|
|
||||||
# Install useful symlinks
|
install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
||||||
install -d $PKG/usr/bin
|
$PKG/usr/share/pixmaps/qdbusviewer-qt5.png
|
||||||
for b in $PKG/usr/share/qt5/bin/*; do
|
|
||||||
ln -s /usr/share/qt5/bin/$(basename $b) $PKG/usr/bin/$(basename $b)-qt5
|
install -dm755 $PKG/usr/share/applications
|
||||||
|
|
||||||
|
|
||||||
|
cat > $PKG/usr/share/applications/assistant-qt5.desktop << "EOf"
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Qt5 Assistant
|
||||||
|
comment=Shows Qt5 documentation and examples
|
||||||
|
Exec=$QT5BINDIR/assistant-qt5
|
||||||
|
icon=assistant-qt5
|
||||||
|
Terminal=false
|
||||||
|
Encoding=UTf-8
|
||||||
|
Type=Application
|
||||||
|
categories=Qt;Development;Documentation;
|
||||||
|
EOf
|
||||||
|
|
||||||
|
cat > $PKG/usr/share/applications/designer-qt5.desktop << "EOf"
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Qt5 Designer
|
||||||
|
GenericName=interface Designer
|
||||||
|
comment=Design GUis for Qt5 applications
|
||||||
|
Exec=$QT5BINDIR/designer-qt5
|
||||||
|
icon=designer-qt5
|
||||||
|
mimeType=application/x-designer;
|
||||||
|
Terminal=false
|
||||||
|
Encoding=UTf-8
|
||||||
|
Type=Application
|
||||||
|
categories=Qt;Development;
|
||||||
|
EOf
|
||||||
|
|
||||||
|
cat > $PKG/usr/share/applications/linguist-qt5.desktop << "EOf"
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Qt5 Linguist
|
||||||
|
comment=Add translations to Qt5 applications
|
||||||
|
Exec=$QT5BINDIR/linguist-qt5
|
||||||
|
icon=linguist-qt5
|
||||||
|
mimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
||||||
|
Terminal=false
|
||||||
|
Encoding=UTf-8
|
||||||
|
Type=Application
|
||||||
|
categories=Qt;Development;
|
||||||
|
EOf
|
||||||
|
|
||||||
|
cat > $PKG/usr/share/applications/qdbusviewer-qt5.desktop << "EOf"
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Qt5 QDbusviewer
|
||||||
|
GenericName=D-Bus Debugger
|
||||||
|
comment=Debug D-Bus applications
|
||||||
|
Exec=$QT5BINDIR/qdbusviewer-qt5
|
||||||
|
icon=qdbusviewer-qt5
|
||||||
|
Terminal=false
|
||||||
|
Encoding=UTf-8
|
||||||
|
Type=Application
|
||||||
|
categories=Qt;Development;Debugger;
|
||||||
|
EOf
|
||||||
|
|
||||||
|
mkdir -p $PKG/etc/profile.d
|
||||||
|
cat > $PKG/etc/profile.d/qt5.sh << EOf
|
||||||
|
# Begin /etc/profile.d/qt5.sh
|
||||||
|
|
||||||
|
QT5PREFIX=$QT5PREFIX
|
||||||
|
QT5DIR=$QT5PREFIX
|
||||||
|
QT5BINDIR=$QT5PREFIX/lib/qt5/bin
|
||||||
|
export QT5PREFIX QT5BINDIR QT5DIR
|
||||||
|
|
||||||
|
# End /etc/profile.d/qt5.sh
|
||||||
|
EOf
|
||||||
|
|
||||||
|
### Creation des liens /usr/bin vers les binaires se trouvant
|
||||||
|
### dans le dossier /usr/lib/qt5/bin en ajoutant qt5 Ã la fin du lien
|
||||||
|
mkdir -p $PKG/usr/bin
|
||||||
|
|
||||||
|
for i in $PKG/usr/lib/qt5/bin/*; do
|
||||||
|
ln -sv /usr/lib/qt5/bin/$(basename $i) $PKG/usr/bin/$(basename $i)-qt5
|
||||||
done
|
done
|
||||||
|
|
||||||
# cmake
|
cat > $PKG/usr/bin/setqt5 << EOF
|
||||||
install -d $PKG/usr/lib/cmake
|
if [ "x\$QT4BINDIR" != "x/usr/bin" ] && [ "x\$QT4BINDIR" != "x" ]; then pathremove $QT4BINDIR; fi
|
||||||
for b in $PKG/usr/share/qt5/lib/cmake/*; do
|
if [ "x\$QT5BINDIR" != "x/usr/bin" ]; then pathprepend $QT5BINDIR; fi
|
||||||
ln -s /usr/share/qt5/lib/cmake/$(basename $b) $PKG/usr/lib/cmake/$(basename $b)
|
echo \$PATH
|
||||||
done
|
EOF
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue