summaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtdeclarative/APKBUILD
blob: b409e6e7c2699d45a4b98dc05b0d6db3ad13c04a (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtdeclarative
pkgver=5.2.1
pkgrel=0
pkgdesc="Qt5 - QtDeclarative component"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev=""
makedepends="$depends_dev qt5-qtbase-dev"
install=""
subpackages="$pkgname-dev"
source="http://download.qt-project.org/official_releases/qt/${pkgver%.*}/$pkgver/submodules/qtdeclarative-opensource-src-$pkgver.tar.xz"

_builddir="$srcdir"/qtdeclarative-opensource-src-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	qmake && make || return 1
}

package() {
	cd "$_builddir"
	make install INSTALL_ROOT="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="a23fba03a4b48f36fe8b51d326d08acc  qtdeclarative-opensource-src-5.2.1.tar.xz"
sha256sums="7e32b8d6e1d64ca4bdfa92d15f9b4217a1b24239ef40e8826eeccbe918866690  qtdeclarative-opensource-src-5.2.1.tar.xz"
sha512sums="ca7bf1b66516158267216c3a3e68abf9e1b063e3eb397b92fa48aecc1c4031397ad22066a4e91c7d0c32ef3ee309d5c3ac77dacdf9a10eca1c1cbd3bf819db42  qtdeclarative-opensource-src-5.2.1.tar.xz"