[arch-commits] Commit in qt6-tools/kde-unstable (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Apr 9 18:38:55 UTC 2021


    Date: Friday, April 9, 2021 @ 18:38:54
  Author: arojas
Revision: 412044

Use upstream script for /usr/bin symlinks

Modified:
  qt6-tools/kde-unstable/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-09 18:33:24 UTC (rev 412043)
+++ PKGBUILD	2021-04-09 18:38:54 UTC (rev 412044)
@@ -5,7 +5,7 @@
 pkgname=qt6-tools
 _qtver=6.1.0-beta3
 pkgver=${_qtver/-/}
-pkgrel=1
+pkgrel=2
 arch=(x86_64)
 url='https://www.qt.io'
 license=(GPL3 LGPL3 FDL custom)
@@ -19,7 +19,8 @@
 sha256sums=('4b5519aa3eb999191dab0d0f66071f594ae854c5c4b60e555b2fad6e5428d49d')
 
 build() {
-  cmake -B build -S $_pkgfn
+  cmake -B build -S $_pkgfn \
+    -DINSTALL_PUBLICBINDIR=usr/bin
   cmake --build build
 }
 
@@ -26,11 +27,12 @@
 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)6
-  done
+# Install symlinks for user-facing tools
+  cd "$pkgdir"
+  mkdir usr/bin
+  while read _line; do
+    ln -s $_line
+  done < "$srcdir"/build/user_facing_tool_links.txt
 
   install -d "$pkgdir"/usr/share/licenses
   ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname



More information about the arch-commits mailing list