* Add certain variables to find Qt's dependencies to the CMake toolchain file because these variables would otherwise needed to be set every time Qt 6 is used * Add a static variant * Not fully tested yet * Further repos besides base and svg will be added later
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
# Based on: AUR package qt6-declarative-git, official qt5-declarative package
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
# you also find the URL of a binary repository.
|
|
|
|
pkgname=qt6-declarative
|
|
_qtver=6.0.0-beta3
|
|
pkgver=${_qtver/-/}
|
|
pkgrel=1
|
|
arch=(x86_64)
|
|
url='https://www.qt.io'
|
|
license=(GPL3 LGPL3 FDL custom)
|
|
pkgdesc='Classes for QML and JavaScript languages'
|
|
depends=(qt6-base)
|
|
makedepends=(cmake python vulkan-headers at-spi2-core ninja)
|
|
groups=(qt6)
|
|
_pkgfqn="${pkgname/6-/}-everywhere-src-${_qtver}"
|
|
source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
|
|
sha256sums=('fe9a05ad73f988f512ed977e0da18164a41c9ee79249b6c63e835a7c5552d279')
|
|
|
|
build() {
|
|
cmake -G Ninja -B build -S $_pkgfqn
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
mkdir "$pkgdir"/usr/bin
|
|
for b in "${pkgdir}"/usr/lib/qt6/bin/*; do
|
|
ln -rs "$pkgdir"/usr/lib/qt6/bin/$(basename $b) "$pkgdir"/usr/bin/$(basename $b)-qt6
|
|
done
|
|
|
|
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
|
find "$pkgdir/usr/lib" -type f -name '*.prl' \
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/qt6-declarative
|
|
}
|