* update qt6-doc to 6.6.0-1

This commit is contained in:
Alexander Baldeck 2023-11-09 07:18:14 +01:00
parent 18fa92d8f1
commit 095fc5a0d7

View File

@ -5,18 +5,33 @@
pkgbase=qt6-doc
pkgname=(qt6-doc qt6-examples)
_qtver=6.5.0
_qtver=6.6.0
pkgver=${_qtver/-/}
pkgrel=1
arch=(any)
url='https://www.qt.io'
license=(GPL3 LGPL3 FDL custom)
makedepends=(cmake ninja mariadb-libs unixodbc postgresql alsa-lib gst-plugins-base-libs
gtk3 libpulse cups freetds vulkan-headers clang python llvm qt6-tools qt6-declarative)
makedepends=(alsa-lib
clang
cmake
cups
freetds
gst-plugins-base-libs
gtk3
libpulse
llvm
mariadb-libs
ninja
postgresql
python
qt6-declarative
qt6-tools
unixodbc
vulkan-headers)
groups=(qt6)
_pkgfn=qt-everywhere-src-$_qtver
source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/single/$_pkgfn.tar.xz)
sha256sums=('dba376e110e53895c7c827eea389dc12aa9c45862cd197d2f0d37ee472baf0b0')
sha256sums=('652538fcb5d175d8f8176c84c847b79177c87847b7273dccaec1897d80b50002')
build() {
cmake -B build -S $_pkgfn -G Ninja \
@ -44,23 +59,19 @@ package_qt6-doc() {
package_qt6-examples() {
pkgdesc='Examples and demos from qt6 documentation'
depends=('qt6-doc')
depends=(qt6-doc)
_base="$pkgdir"/usr/share/doc/qt6/examples
# The various example dirs have conflicting .pro files, but
# QtCreator requires them to be in the same top-level directory.
# Matching the Qt5 installer, only the qtbase project is kept.
# Matching the Qt installer, only the qtbase project is kept.
mkdir -p $_base
cp ${_pkgfn}/qtbase/examples/examples.pro $_base
_fdirs=$(find "${_pkgfn}" -maxdepth 2 -type d -name examples)
_fdirs=$(find "$_pkgfn" -maxdepth 2 -type d -name examples)
for _dir in $_fdirs; do
_mod=$(basename ${_dir%/examples})
if [ -e "$_dir/README" ]; then
cp $_dir/README $_dir/README.$_mod
fi
mkdir $_base/$_mod
cp -rn $_dir/* $_base/$_mod
rm -f $_dir/{examples.pro,CMakeLists.txt,README}
cp -rn $_dir/* $_base
done
}