OCaml 4.14.0 rebuild
[arch-packages.git] / qt5-quicktimeline / trunk / PKGBUILD
blob8c27e2ab2020ec365d4d322685c7f7af0ce57f88
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=qt5-quicktimeline
4 _basever=5.15.5
5 pkgver=5.15.5+kde+r0
6 pkgrel=1
7 _commit=2da3c0efd5016bdba26b80789773238c2886fdf6
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')
18 options=(debug)
20 pkgver() {
21   cd $_pkgfqn
22   echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit`
25 prepare() {
26   mkdir -p build
29 build() {
30   cd build
32   qmake ../${_pkgfqn}
33   make
36 package() {
37   cd build
38   make INSTALL_ROOT="$pkgdir" install
40   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
41   find "$pkgdir/usr/lib" -type f -name '*.prl' \
42     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
44   install -d "$pkgdir"/usr/share/licenses
45   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}