archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-3d / repos / extra-x86_64 / PKGBUILD
blob07c801a070b2d1bf52500923c638974ee191e7c1
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-3d
5 _qtver=5.15.2
6 pkgver=5.15.2+kde+r39
7 pkgrel=1
8 _commit=dba14d48611b9e9d59576172658779ab4a39b416
9 arch=('x86_64')
10 url='https://www.qt.io'
11 license=('GPL3' 'LGPL3' 'FDL' 'custom')
12 pkgdesc='C++ and QML APIs for easy inclusion of 3D graphics'
13 depends=('qt5-declarative' 'assimp')
14 makedepends=('git' 'vulkan-headers')
15 groups=('qt' 'qt5')
16 _pkgfqn=qt3d
17 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
18 sha256sums=('SKIP')
20 pkgver() {
21   cd $_pkgfqn
22   echo "5.15.2+kde+r"`git rev-list --count origin/5.15.2..$_commit`
25 prepare() {
26   mkdir -p build
28   cd $_pkgfqn
29   git revert -n 997ff3ad21b9303aa3321a86e5c5b9cfcfc2f807 # Revert version bump
32 build() {
33   cd build
35   qmake ../${_pkgfqn}
36   make
39 package() {
40   cd build
41   make INSTALL_ROOT="$pkgdir" install
43   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
44   find "$pkgdir/usr/lib" -type f -name '*.prl' \
45     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
47   install -d "$pkgdir"/usr/share/licenses
48   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}