archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-quickcontrols2 / trunk / PKGBUILD
blob466d41876e6ea0941e87fb7eca51163f9e80c248
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-quickcontrols2
5 pkgver=5.15.2+kde+r8
6 pkgrel=1
7 _commit=be66bf9a5618c745d2a6ee2262967af6307b3b07
8 arch=('x86_64')
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Next generation user interface controls based on Qt Quick'
12 depends=('qt5-declarative')
13 makedepends=('git')
14 optdepends=('qt5-graphicaleffects: for the Material style')
15 groups=('qt' 'qt5')
16 _pkgfqn=qtquickcontrols2
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 2e32d0975eb058c2076597c03b07c67b7ce9027f # 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}