archrelease: copy trunk to testing-x86_64
[arch-packages.git] / qt6-quickeffectmaker / repos / extra-x86_64 / PKGBUILD
blobe48c9bbedef5bb1b6404a038eaa8b70002f2df43
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
4 pkgname=qt6-quickeffectmaker
5 _qtver=6.5.0
6 pkgver=${_qtver/-/}
7 pkgrel=3
8 arch=(x86_64)
9 url='https://www.qt.io'
10 license=(GPL3 LGPL3 FDL custom)
11 pkgdesc='Qt Quick Effect Maker (QQEM) for creating and editing custom shader effects'
12 depends=(qt6-shadertools qt6-quick3d)
13 makedepends=(cmake ninja)
14 groups=(qt6)
15 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
16 source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
17         ae9e00fd.patch::https://code.qt.io/cgit/qt/qtquickeffectmaker.git/patch/?id=ae9e00fd)
18 sha256sums=('4b32c672cad0f7890f56a59486bd79cf8fa4ad208fb0f7c25e14e0aa2fb29cd7'
19             '2194f0684e5cb3955b074f46eba07bbcdf83a4f7c63a3ec5b508ce97ad75d91a')
21 prepare() {
22   patch -d $_pkgfn -p1 < ae9e00fd.patch # Set qqem as user-facing so it's symlinked in /usr/bin
25 build() {
26   cmake -B build -S $_pkgfn -G Ninja \
27     -DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
28     -DINSTALL_PUBLICBINDIR=usr/bin
29   cmake --build build
32 package() {
33   DESTDIR="$pkgdir" cmake --install build
35 # Install symlinks for user-facing tools
36   cd "$pkgdir"
37   mkdir usr/bin
38   while read _line; do
39     ln -s $_line
40   done < "$srcdir"/build/user_facing_tool_links.txt
42   install -d "$pkgdir"/usr/share/licenses
43   ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname