archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-declarative / trunk / PKGBUILD
blob7d415c3c330e0e93491e34d50acbf8acd0453e90
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-declarative
5 pkgver=5.15.2+kde+r41
6 pkgrel=1
7 _commit=7024ac8358f9e576dff013ce2452c1daa0d34506
8 arch=('x86_64')
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Classes for QML and JavaScript languages'
12 depends=('qt5-base')
13 makedepends=('python' 'vulkan-headers' 'git')
14 groups=('qt' 'qt5')
15 conflicts=('qtchooser')
16 _pkgfqn=qtdeclarative
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 568763928a78b52373932b01be17e040f7c3fa50 # 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   # Symlinks for backwards compatibility
44   for b in "$pkgdir"/usr/bin/*; do
45     ln -s $(basename $b) "$pkgdir"/usr/bin/$(basename $b)-qt5
46   done
48   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
49   find "$pkgdir/usr/lib" -type f -name '*.prl' \
50     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
52   install -d "$pkgdir"/usr/share/licenses
53   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}