extra/qt6-base to 6.1.0-1

This commit is contained in:
Kevin Mihelich 2021-05-07 12:22:16 +00:00
parent ba05d4b062
commit 13648f68d7

View file

@ -6,7 +6,7 @@
# - explicitly link v5/v6 with libatomic
pkgname=qt6-base
_qtver=6.0.4
_qtver=6.1.0
pkgver=${_qtver/-/}
pkgrel=1
arch=(x86_64)
@ -26,11 +26,11 @@ optdepends=('postgresql-libs: PostgreSQL driver'
'gtk3: GTK platform plugin'
'perl: for syncqt')
groups=(qt6)
_pkgfn="${pkgname/6-/}-everywhere-src-${_qtver}"
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz"
qt6-base-cflags.patch
qt6-base-nostrip.patch)
sha256sums=('c42757932d7cb264a043cc2a0eed30774d938f63db67bfff11d8e319c0c8799a'
_pkgfn="${pkgname/6-/}-everywhere-src-$_qtver"
source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
qt6-base-cflags.patch
qt6-base-nostrip.patch)
sha256sums=('f7af3c87e96051d09b5abce6c88277c33031bef241ebfe1db4106d33ed0814c4'
'cf707cd970650f8b60f8897692b36708ded9ba116723ec8fcd885576783fe85c'
'4b93f6a79039e676a56f9d6990a324a64a36f143916065973ded89adc621e094')
@ -45,6 +45,7 @@ build() {
cmake -B build -S $_pkgfn \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_BINDIR=lib/qt6/bin \
-DINSTALL_PUBLICBINDIR=usr/bin \
-DINSTALL_LIBEXECDIR=lib/qt6 \
-DINSTALL_DOCDIR=share/doc/qt6 \
-DINSTALL_ARCHDATADIR=lib/qt6 \
@ -63,9 +64,10 @@ package() {
install -Dm644 $_pkgfn/LICENSE* -t "$pkgdir"/usr/share/licenses/$pkgbase
# Symlinks for backwards compatibility
mkdir -p "$pkgdir"/usr/bin
for _b in qmake androidqt androidtestrunner; do
ln -s /usr/lib/qt6/bin/$_b "$pkgdir"/usr/bin/${_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
}