extra/qt6-base to 6.0.2-2

This commit is contained in:
Kevin Mihelich 2021-03-19 12:28:48 +00:00
parent 421d08c46e
commit 06eb3e772f

View file

@ -8,7 +8,7 @@
pkgname=qt6-base
_qtver=6.0.2
pkgver=${_qtver/-/}
pkgrel=1
pkgrel=2
arch=(x86_64)
url='https://www.qt.io'
license=(GPL3 LGPL3 FDL custom)
@ -45,6 +45,7 @@ build() {
cmake -B build -S $_pkgfn \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_BINDIR=lib/qt6/bin \
-DINSTALL_LIBEXECDIR=lib/qt6 \
-DINSTALL_DOCDIR=share/doc/qt6 \
-DINSTALL_ARCHDATADIR=lib/qt6 \
-DINSTALL_DATADIR=share/qt6 \
@ -64,7 +65,7 @@ package() {
# Symlinks for backwards compatibility
mkdir -p "$pkgdir"/usr/bin
for _b in $(ls "$pkgdir"/usr/lib/qt6/bin); do
ln -rs "$pkgdir"/usr/lib/qt6/bin/$_b "$pkgdir"/usr/bin/$_b-qt6
for _b in qmake androidqt androidtestrunner; do
ln -s /usr/lib/qt6/bin/$_b "$pkgdir"/usr/bin/${_b}6
done
}