mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/qt6: Updated for version 6.4.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bf61e980b6
commit
484b88ca1f
10 changed files with 117 additions and 5 deletions
|
@ -19,6 +19,7 @@ Qt6 will compile with multiple optional dependencies, such as:
|
|||
(*)directfb
|
||||
(*)gn
|
||||
(*)interbase
|
||||
libb2
|
||||
(*)litehtml
|
||||
(*)lttn-ust
|
||||
mold
|
||||
|
|
8
libraries/qt6/desktop/assistant-qt6.desktop
Normal file
8
libraries/qt6/desktop/assistant-qt6.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt6 Assistant
|
||||
Comment=Shows Qt6 documentation and examples
|
||||
Exec=/usr/lib@LIBDIR@/qt6/bin/assistant
|
||||
Icon=assistant-qt6
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;Documentation;
|
10
libraries/qt6/desktop/designer-qt6.desktop
Normal file
10
libraries/qt6/desktop/designer-qt6.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt6 Designer
|
||||
GenericName=Interface Designer
|
||||
Comment=Design GUIs for Qt6 applications
|
||||
Exec=/usr/lib@LIBDIR@/qt6/bin/designer
|
||||
Icon=designer-qt6
|
||||
MimeType=application/x-designer;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;
|
9
libraries/qt6/desktop/linguist-qt6.desktop
Normal file
9
libraries/qt6/desktop/linguist-qt6.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt6 Linguist
|
||||
Comment=Add translations to Qt6 applications
|
||||
Exec=/usr/lib@LIBDIR@/qt6/bin/linguist
|
||||
Icon=linguist-qt6
|
||||
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;
|
9
libraries/qt6/desktop/qdbusviewer-qt6.desktop
Normal file
9
libraries/qt6/desktop/qdbusviewer-qt6.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt6 QDbusViewer
|
||||
GenericName=Qt6 D-Bus Debugger
|
||||
Comment=Debug D-Bus applications
|
||||
Exec=/usr/lib@LIBDIR@/qt6/bin/qdbusviewer
|
||||
Icon=qdbusviewer-qt6
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Qt;Development;Debugger;
|
9
libraries/qt6/doinst.sh
Normal file
9
libraries/qt6/doinst.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
17
libraries/qt6/profile.d/qt6.csh
Normal file
17
libraries/qt6/profile.d/qt6.csh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/csh
|
||||
# Environment path variables for the Qt package:
|
||||
if ( ! $?QT6DIR ) then
|
||||
# It's best to use the generic directory to avoid
|
||||
# compiling in a version-containing path:
|
||||
if ( -d /usr/lib@LIBDIRSUFFIX@/qt6 ) then
|
||||
setenv QT6DIR /usr/lib@LIBDIRSUFFIX@/qt6
|
||||
else
|
||||
# Find the newest Qt directory and set $QT6DIR to that:
|
||||
foreach qtd ( /usr/lib@LIBDIRSUFFIX@/qt6-* )
|
||||
if ( -d $qtd ) then
|
||||
setenv QT6DIR $qtd
|
||||
endif
|
||||
end
|
||||
endif
|
||||
endif
|
||||
set path = ( $path $QT6DIR/bin )
|
17
libraries/qt6/profile.d/qt6.sh
Normal file
17
libraries/qt6/profile.d/qt6.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# Environment variables for the Qt package.
|
||||
#
|
||||
# It's best to use the generic directory to avoid
|
||||
# compiling in a version-containing path:
|
||||
if [ -d /usr/lib@LIBDIRSUFFIX@/qt6 ]; then
|
||||
QT6DIR=/usr/lib@LIBDIRSUFFIX@/qt6
|
||||
else
|
||||
# Find the newest Qt directory and set $QT6DIR to that:
|
||||
for qtd in /usr/lib@LIBDIRSUFFIX@/qt6-* ; do
|
||||
if [ -d $qtd ]; then
|
||||
QT6DIR=$qtd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
PATH="$PATH:$QT6DIR/bin"
|
||||
export QT6DIR
|
|
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=qt6
|
||||
SRCNAM=qt-everywhere-src
|
||||
VERSION=${VERSION:-6.3.2}
|
||||
VERSION=${VERSION:-6.4.0}
|
||||
BSCLANG=libclang-release_130-based-linux-Ubuntu20.04-gcc9.3-x86_64
|
||||
CCACHE=${CCACHE:-OFF}
|
||||
EXAMPLES=${EXAMPLES:-OFF}
|
||||
|
@ -124,7 +124,7 @@ cd build
|
|||
cd ..
|
||||
|
||||
mv $PKG/usr/phrasebooks $PKG/usr/share/$PRGNAM/
|
||||
mv $PKG/usr/resources $PKG/usr/share/$PRGNAM/
|
||||
# mv $PKG/usr/resources $PKG/usr/share/$PRGNAM/
|
||||
|
||||
if [ "$EXAMPLES" = "ON" ]; then
|
||||
find -L $PKG/usr/doc/$PRGNAM-$VERSION/examples \
|
||||
|
@ -136,6 +136,37 @@ fi
|
|||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
for i in $CWD/desktop/*.desktop; do
|
||||
install -D -m 0644 $i $PKG/usr/share/applications/$(basename $i)
|
||||
done
|
||||
sed -i "s|@LIBDIR@|$LIBDIRSUFFIX|" $PKG/usr/share/applications/*
|
||||
|
||||
# Install symlinks to the Qt6 binaries in the $PATH (avoid the ones already ending in "6"):
|
||||
mkdir -p $PKG/usr/bin
|
||||
for FILE in $PKG/usr/lib${LIBDIRSUFFIX}/qt6/bin/* ; do
|
||||
if ! [[ $FILE =~ 6$ ]]; then
|
||||
ln -s ../lib${LIBDIRSUFFIX}/qt6/bin/$(basename $FILE) $PKG/usr/bin/$(basename $FILE)-qt6
|
||||
fi
|
||||
done
|
||||
|
||||
install -D -m 0644 qttools/src/assistant/assistant/images/assistant-128.png \
|
||||
$PKG/usr/share/icons/hicolor/128x128/apps/assistant-qt6.png
|
||||
install -D -m 0644 qttools/src/designer/src/designer/images/designer.png \
|
||||
$PKG/usr/share/icons/hicolor/128x128/apps/designer-qt6.png
|
||||
install -D -m 0644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
||||
$PKG/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt6.png
|
||||
for i in 16 32 48 64 128; do
|
||||
install -D -m 0644 qttools/src/linguist/linguist/images/icons/linguist-${i}-32.png \
|
||||
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/linguist-qt6.png
|
||||
done
|
||||
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PRGNAM.sh \
|
||||
> $PKG/etc/profile.d/$PRGNAM.sh
|
||||
sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PRGNAM.csh \
|
||||
> $PKG/etc/profile.d/$PRGNAM.csh
|
||||
chmod 0755 $PKG/etc/profile.d/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
.QT-ENTERPRISE-LICENSE-AGREEMENT LICENSE.* README.md \
|
||||
|
@ -144,6 +175,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
PRGNAM="qt6"
|
||||
VERSION="6.3.2"
|
||||
VERSION="6.4.0"
|
||||
HOMEPAGE="https://qt.io"
|
||||
DOWNLOAD="UNSUPPORTED"
|
||||
MD5SUM=""
|
||||
DOWNLOAD_x86_64="https://download.qt.io/official_releases/qt/6.3/6.3.2/single/qt-everywhere-src-6.3.2.tar.xz \
|
||||
DOWNLOAD_x86_64="https://download.qt.io/official_releases/qt/6.4/6.4.0/single/qt-everywhere-src-6.4.0.tar.xz \
|
||||
https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_130-based-linux-Ubuntu20.04-gcc9.3-x86_64.7z"
|
||||
MD5SUM_x86_64="bc928a9897698ec397b11c3dbff40e53 \
|
||||
MD5SUM_x86_64="b45c32495e87cffa4739b24b5d062c50 \
|
||||
1eb94ba35df4aa217cf485086215182a"
|
||||
REQUIRES="double-conversion html5lib md4c nodejs p7zip"
|
||||
MAINTAINER="Steven Voges"
|
||||
|
|
Loading…
Reference in a new issue