archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-quicktimeline / trunk / PKGBUILD
blob90be4207eda3a941d609ac0b307be728a3277687
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=qt5-quicktimeline
4 _basever=5.15.9
5 pkgver=5.15.9
6 pkgrel=1
7 _commit=dd5d4af65890baad8baa85a445a752a877a4f7e3
8 arch=('x86_64')
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Qt module for keyframe-based timeline construction'
12 depends=('qt5-declarative')
13 makedepends=('git')
14 groups=('qt' 'qt5')
15 _pkgfqn=${pkgname/5-/}
16 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
17 sha256sums=('SKIP')
19 pkgver() {
20   cd $_pkgfqn
21   echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit` | sed -e 's|+kde+r0||'
24 prepare() {
25   mkdir -p build
28 build() {
29   cd build
31   qmake ../${_pkgfqn}
32   make
35 package() {
36   cd build
37   make INSTALL_ROOT="$pkgdir" install
39   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
40   find "$pkgdir/usr/lib" -type f -name '*.prl' \
41     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
43   install -d "$pkgdir"/usr/share/licenses
44   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}