summaryrefslogtreecommitdiff
path: root/user/qt5-qtquicktimeline/APKBUILD
blob: e3ae12c6a138b9b824e9dca7ab51cc8603f6f132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=qt5-qtquicktimeline
_pkgname=${pkgname#*-}-everywhere-src
pkgver=5.15.3_git20211215
pkgrel=0
_commit=67503cdadea43b95ddad0de1a04951aff0ce1a07
pkgdesc="Qt5 Timeline module enables keyframe-based animations and parameterization"
url="https://www.qt.io/"
arch="all"
license="LGPL-3.0-only WITH Qt-LGPL-exception-1.1 OR GPL-3.0-only WITH Qt-GPL-exception-1.0"
depends=""
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-doc"
source="https://invent.kde.org/qt/qt/${pkgname#*-}/-/archive/$_commit/${pkgname#*-}-$_commit.tar.gz"
builddir="$srcdir"/${pkgname#*-}-$_commit

prepare() {
	default_prepare

	# Make configure think we are running in a git directory
	# This makes it symlink the include files to the right directory
	mkdir .git
}

build() {
	qmake
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
	find "$pkgdir/usr/lib" -type f -name '*.prl' \
		-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

	install -d "$pkgdir"/usr/share/licenses
	ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="cf18c91e80668da4dea344b70e850f4b99b08d9c38d8663918edc97968a48ad1b6c1fce91460dc29b3788edd156166b7dfd96fc49c487bec718c832f82e37efd  qtquicktimeline-67503cdadea43b95ddad0de1a04951aff0ce1a07.tar.gz"