Date: Tuesday, October 6, 2020 @ 17:32:53 Author: arojas Revision: 397403
Initial Qt6 packages Added: qt6-tools/ qt6-tools/kde-unstable/ qt6-tools/kde-unstable/PKGBUILD ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Added: qt6-tools/kde-unstable/PKGBUILD =================================================================== --- qt6-tools/kde-unstable/PKGBUILD (rev 0) +++ qt6-tools/kde-unstable/PKGBUILD 2020-10-06 17:32:53 UTC (rev 397403) @@ -0,0 +1,37 @@ +# Maintainer: Antonio Rojas <[email protected]> +# Maintainer: Felix Yan <[email protected]> +# Contributor: Andrea Scarpino <[email protected]> + +pkgname=qt6-tools +_qtver=6.0.0-alpha +pkgver=${_qtver/-/} +pkgrel=1 +arch=(x86_64) +url='https://www.qt.io' +license=(GPL3 LGPL3 FDL custom) +pkgdesc='A cross-platform application and UI framework (Development Tools, QtHelp)' +depends=(qt6-base) +makedepends=(cmake qt6-declarative vulkan-headers clang llvm) +optdepends=('clang: for qdoc and lupdate') +groups=(qt6) +_pkgfn="${pkgname/6-/}-everywhere-src-${_qtver}" +source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz") +sha256sums=('69f242ecca020b78643d2d7aaae9e2c1713b6aa7b9b915b16cc9265bf5dfd212') + +build() { + cmake -B build -S $_pkgfn + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + +# Symlinks for backwards compatibility + 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 + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/qt6-declarative +}
